org.jboss.wise.core.wsextensions
Class WSExtensionEnabler

java.lang.Object
  extended by org.jboss.wise.core.wsextensions.WSExtensionEnabler
Direct Known Subclasses:
MTOMEnabler, WSAddressingEnabler, WSRMEnabler, WSSecurityEnabler

public abstract class WSExtensionEnabler
extends java.lang.Object

It is an interface defining a WSExtension to be enabled on an endpoint using wise-core client APIs. The basic idea is to add all WSExtension you want to enable to a WSEndpoint using addWSExtension method. WSExtension implementation are meant to be pure declarative class delegating all their operations to a "visitor" class injected into the system with IOC Different Visitors implement EnablerDelegate and have to take care to implement necessary steps to implement various WSExtension for the JAXWS implementation for which they are supposed to work.

Author:
stefano.maestri@javalinux.it

Field Summary
protected  EnablerDelegate delegate
           
 
Constructor Summary
WSExtensionEnabler()
           
 
Method Summary
abstract  void enable(WSEndpoint endpoint)
          This is the call back method invoked by WSEndpoint to ask this extension to enable itself.
 EnablerDelegate getDelegate()
          For test purpose
 void setDelegate(EnablerDelegate delegate)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

delegate

protected EnablerDelegate delegate
Constructor Detail

WSExtensionEnabler

public WSExtensionEnabler()
Method Detail

enable

public abstract void enable(WSEndpoint endpoint)
This is the call back method invoked by WSEndpoint to ask this extension to enable itself. Implementer should delegate the effective job to EnablerDelegate implementation for the right JAX-WS stack in use.

Parameters:
endpoint -

getDelegate

public final EnablerDelegate getDelegate()
For test purpose

Returns:
visitor

setDelegate

public final void setDelegate(EnablerDelegate delegate)
Parameters:
delegate -