com.sun.xml.ws.api.pipe.helper
Class AbstractPipeImpl

java.lang.Object
  extended by com.sun.xml.ws.api.pipe.helper.AbstractPipeImpl
All Implemented Interfaces:
Pipe
Direct Known Subclasses:
AbstractFilterPipeImpl

public abstract class AbstractPipeImpl
extends Object
implements Pipe

Partial default implementation of Pipe.

To be shielded from potentail changes in JAX-WS, please consider extending from this class, instead of implementing Pipe directly.


Constructor Summary
protected AbstractPipeImpl()
          Do-nothing constructor.
protected AbstractPipeImpl(Pipe that, PipeCloner cloner)
          Basis for the copy constructor.
 
Method Summary
 void preDestroy()
          Invoked before the last copy of the pipeline is about to be discarded, to give Pipes a chance to clean up any resources.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sun.xml.ws.api.pipe.Pipe
copy, process
 

Constructor Detail

AbstractPipeImpl

protected AbstractPipeImpl()
Do-nothing constructor.


AbstractPipeImpl

protected AbstractPipeImpl(Pipe that,
                           PipeCloner cloner)
Basis for the copy constructor.

This registers the newly created Pipe with the PipeCloner through PipeCloner.add(Pipe, Pipe).

Method Detail

preDestroy

public void preDestroy()
Description copied from interface: Pipe
Invoked before the last copy of the pipeline is about to be discarded, to give Pipes a chance to clean up any resources.

This can be used to invoke PreDestroy lifecycle methods on user handler. The invocation of it is optional on the client side, but mandatory on the server side.

When multiple copies of pipelines are created, this method is called only on one of them.

Specified by:
preDestroy in interface Pipe