|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.databene.benerator.wrapper.SynchronizedGeneratorProxy<E>
public class SynchronizedGeneratorProxy<E>
Synchronized wrapper class for non-thread-safe Generator
implementations.
Created: 24.02.2010 23:08:39
Method Summary | |
---|---|
void |
close()
Closes the generator. |
ProductWrapper<E> |
generate(ProductWrapper<E> wrapper)
Returns an instance of the generic type E, using the ProductWrapper
instance provided as argument. |
java.lang.Class<E> |
getGeneratedType()
Declares the type of the objects returned by the generate() method. |
void |
init(GeneratorContext context)
|
boolean |
isParallelizable()
|
boolean |
isThreadSafe()
|
void |
reset()
|
boolean |
wasInitialized()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void init(GeneratorContext context)
init
in interface Generator<E>
public boolean wasInitialized()
wasInitialized
in interface Generator<E>
public java.lang.Class<E> getGeneratedType()
Generator
getGeneratedType
in interface Generator<E>
public ProductWrapper<E> generate(ProductWrapper<E> wrapper)
Generator
ProductWrapper
instance provided as argument.
The wrapper may wrap a null value as a regular generator product.
If the generator is not available (any more), it returns null instead of
the ProductWrapper instance.
generate
in interface Generator<E>
public void reset()
reset
in interface org.databene.commons.Resettable
public void close()
Generator
close
in interface java.io.Closeable
close
in interface Generator<E>
public boolean isThreadSafe()
isThreadSafe
in interface org.databene.commons.ThreadAware
public boolean isParallelizable()
isParallelizable
in interface org.databene.commons.ThreadAware
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |