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

java.lang.Object
  extended by org.databene.benerator.engine.AbstractScopedLifeCycleHolder
      extended by org.databene.benerator.composite.ComponentBuilderProxy<E>
All Implemented Interfaces:
java.io.Closeable, ComponentBuilder<E>, GeneratorComponent<E>, LifeCycleHolder, ScopedLifeCycleHolder, Statement, org.databene.commons.MessageHolder, org.databene.commons.Resettable, org.databene.commons.ThreadAware
Direct Known Subclasses:
ConditionalComponentBuilder

public class ComponentBuilderProxy<E>
extends AbstractScopedLifeCycleHolder
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
 void close()
           
 boolean execute(BeneratorContext context)
           
 java.lang.String getMessage()
           
 void init(BeneratorContext context)
           
 boolean isParallelizable()
           
 boolean isThreadSafe()
           
 void reset()
           
 
Methods inherited from class org.databene.benerator.engine.AbstractScopedLifeCycleHolder
getScope, isResetNeeded, resetIfNeeded, setResetNeeded, setScope
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.databene.benerator.engine.ScopedLifeCycleHolder
getScope, isResetNeeded, resetIfNeeded, setResetNeeded, setScope
 

Field Detail

source

protected final ComponentBuilder<E> source

context

protected GeneratorContext context
Constructor Detail

ComponentBuilderProxy

public ComponentBuilderProxy(ComponentBuilder<E> source)
Method Detail

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(BeneratorContext context)
Specified by:
init in interface LifeCycleHolder

execute

public boolean execute(BeneratorContext context)
Specified by:
execute in interface Statement

reset

public void reset()
Specified by:
reset in interface org.databene.commons.Resettable

close

public void close()
Specified by:
close in interface java.io.Closeable
Specified by:
close in interface GeneratorComponent<E>

getMessage

public java.lang.String getMessage()
Specified by:
getMessage in interface org.databene.commons.MessageHolder


Copyright © 2013. All Rights Reserved.