org.databene.benerator.composite
Class ComponentBuilderProxy<E>

java.lang.Object
  extended by org.databene.benerator.composite.ComponentBuilderProxy<E>
All Implemented Interfaces:
ComponentBuilder<E>, org.databene.commons.ThreadAware
Direct Known Subclasses:
ConditionalComponentBuilder

public class ComponentBuilderProxy<E>
extends java.lang.Object
implements ComponentBuilder<E>

Proxy class for a ComponentBuilder.

Created: 11.10.2010 11:10:51

Since:
0.6.4
Author:
Volker Bergmann

Field Summary
protected  GeneratorContext context
           
protected  ComponentBuilder<E> source
           
 
Constructor Summary
ComponentBuilderProxy(ComponentBuilder<E> source)
           
 
Method Summary
 boolean buildComponentFor(E target)
          builds the related component of target
 void close()
          closes the builder
 java.lang.Class<?> getGeneratedType()
           
 void init(GeneratorContext context)
          Initializes the instance
 boolean isParallelizable()
           
 boolean isThreadSafe()
           
 void reset()
          resets the builder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

source

protected ComponentBuilder<E> source

context

protected GeneratorContext context
Constructor Detail

ComponentBuilderProxy

public ComponentBuilderProxy(ComponentBuilder<E> source)
Method Detail

getGeneratedType

public java.lang.Class<?> getGeneratedType()
Specified by:
getGeneratedType in interface ComponentBuilder<E>
Returns:
the type of the generated components

isParallelizable

public boolean isParallelizable()
Specified by:
isParallelizable in interface org.databene.commons.ThreadAware

isThreadSafe

public boolean isThreadSafe()
Specified by:
isThreadSafe in interface org.databene.commons.ThreadAware

init

public void init(GeneratorContext context)
Description copied from interface: ComponentBuilder
Initializes the instance

Specified by:
init in interface ComponentBuilder<E>

buildComponentFor

public boolean buildComponentFor(E target)
Description copied from interface: ComponentBuilder
builds the related component of target

Specified by:
buildComponentFor in interface ComponentBuilder<E>
Returns:
false if no more data was available to build, otherwise true

reset

public void reset()
Description copied from interface: ComponentBuilder
resets the builder

Specified by:
reset in interface ComponentBuilder<E>

close

public void close()
Description copied from interface: ComponentBuilder
closes the builder

Specified by:
close in interface ComponentBuilder<E>


Copyright © 2011. All Rights Reserved.