org.databene.benerator.consumer
Class NonClosingConsumerProxy

java.lang.Object
  extended by org.databene.benerator.consumer.ConsumerProxy
      extended by org.databene.benerator.consumer.NonClosingConsumerProxy
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable, Consumer, org.databene.commons.ThreadAware

public class NonClosingConsumerProxy
extends ConsumerProxy

Consumer 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: 14.04.2011 11:36:07

Since:
0.6.6
Author:
Volker Bergmann

Field Summary
 
Fields inherited from class org.databene.benerator.consumer.ConsumerProxy
target
 
Constructor Summary
NonClosingConsumerProxy(Consumer target)
           
 
Method Summary
 void close()
          When called, the implementor has to close and free all resources.
 java.lang.String toString()
           
 
Methods inherited from class org.databene.benerator.consumer.ConsumerProxy
finishConsuming, flush, getTarget, isParallelizable, isThreadSafe, setTarget, startConsuming
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NonClosingConsumerProxy

public NonClosingConsumerProxy(Consumer target)
Method Detail

close

public void close()
Description copied from interface: Consumer
When called, the implementor has to close and free all resources. It will not receive any more calls.

Specified by:
close in interface java.io.Closeable
Specified by:
close in interface Consumer
Overrides:
close in class ConsumerProxy

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2013. All Rights Reserved.