org.databene.benerator.wrapper
Class CompositeGenerator<E>
java.lang.Object
org.databene.benerator.util.AbstractGenerator<E>
org.databene.benerator.wrapper.CompositeGenerator<E>
- All Implemented Interfaces:
- java.io.Closeable, Generator<E>, org.databene.commons.Resettable, org.databene.commons.ThreadAware
- Direct Known Subclasses:
- AddressGenerator, BankAccountGenerator, BankGenerator, DateTimeGenerator, PersonGenerator, RandomDomainGenerator, SSNGenerator
public abstract class CompositeGenerator<E>
- extends AbstractGenerator<E>
Generator
implementation that makes use of other ContextAware
objects by which its threading support is influenced.
Created: 20.03.2010 11:19:11
- Since:
- 0.6.0
- Author:
- Volker Bergmann
Field Summary |
protected java.util.List<org.databene.commons.ThreadAware> |
components
|
protected java.lang.Class<E> |
generatedType
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
generatedType
protected java.lang.Class<E> generatedType
components
protected java.util.List<org.databene.commons.ThreadAware> components
CompositeGenerator
protected CompositeGenerator(java.lang.Class<E> generatedType)
registerComponent
protected <T extends Generator<U>,U> T registerComponent(T component)
registerComponent
protected <T extends org.databene.commons.Converter<U,V>,U,V> T registerComponent(T component)
registerComponents
protected void registerComponents(org.databene.commons.ThreadAware[] components)
getGeneratedType
public java.lang.Class<E> getGeneratedType()
- Description copied from interface:
Generator
- Declares the type of the objects returned by the generate() method.
isThreadSafe
public boolean isThreadSafe()
isParallelizable
public boolean isParallelizable()
Copyright © 2013. All Rights Reserved.