org.databene.benerator.wrapper
Class NonClosingGeneratorProxy<E>

java.lang.Object
  extended by org.databene.benerator.util.AbstractGenerator<P>
      extended by org.databene.benerator.wrapper.GeneratorWrapper<E,E>
          extended by org.databene.benerator.wrapper.GeneratorProxy<E>
              extended by org.databene.benerator.wrapper.NonClosingGeneratorProxy<E>
All Implemented Interfaces:
java.io.Closeable, Generator<E>, org.databene.commons.Resettable, org.databene.commons.ThreadAware

public class NonClosingGeneratorProxy<E>
extends GeneratorProxy<E>

Generator proxy that prevents its delegate from being closed. Note: Users of this class must ensure that the delegate is closed a different way (e.g. by a ResourceManager).

Created: 13.04.2011 20:12:18

Since:
0.6.6
Author:
Volker Bergmann

Field Summary
 
Fields inherited from class org.databene.benerator.wrapper.GeneratorProxy
generatedType
 
Fields inherited from class org.databene.benerator.util.AbstractGenerator
context, logger, state
 
Constructor Summary
NonClosingGeneratorProxy(Generator<E> source)
           
 
Method Summary
 void close()
          Closes the generator.
 
Methods inherited from class org.databene.benerator.wrapper.GeneratorProxy
generate, getGeneratedType, toString
 
Methods inherited from class org.databene.benerator.wrapper.GeneratorWrapper
equals, generateFromSource, getSource, getSourceWrapper, hashCode, init, isParallelizable, isThreadSafe, reset, setSource
 
Methods inherited from class org.databene.benerator.util.AbstractGenerator
assertInitialized, assertNotInitialized, getResultWrapper, wasInitialized
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NonClosingGeneratorProxy

public NonClosingGeneratorProxy(Generator<E> source)
Method Detail

close

public void close()
Description copied from interface: Generator
Closes the generator. After invocation the state is unavailable.

Specified by:
close in interface java.io.Closeable
Specified by:
close in interface Generator<E>
Overrides:
close in class GeneratorWrapper<E,E>


Copyright © 2013. All Rights Reserved.