org.jboss.wise.core.wsextensions.impl.jbosswsnative
Class ReflectionEnablerDelegate

java.lang.Object
  extended by org.jboss.wise.core.wsextensions.impl.jbosswsnative.ReflectionEnablerDelegate
All Implemented Interfaces:
EnablerDelegate

public class ReflectionEnablerDelegate
extends java.lang.Object
implements EnablerDelegate

It is an implementation of EnablerDelegate providing operation needed to enable extension on jbossws-native stack using reflection to access generated classes.

Author:
stefano.maestri@javalinux.it, alessio.soldano@jboss.com

Constructor Summary
ReflectionEnablerDelegate()
           
 
Method Summary
 NativeSecurityConfig getDefaultSecurityConfig()
          get default s NativeSecurityConfig used when WSEndpoint on which this visitor is enabling extensions isn't find in getSecurityConfigMap() Intended to be used for IOC (jboss-beans.xml)
 java.util.Map<java.lang.String,NativeSecurityConfig> getSecurityConfigMap()
          get security config MapNativeSecurityConfig> where keys are WSEndpoint names.
 void setDefaultSecurityConfig(NativeSecurityConfig defaultSecurityConfig)
          set default s NativeSecurityConfig used when WSEndpoint on which this visitor is enabling extensions isn't find in getSecurityConfigMap() Intended to be used for IOC (jboss-beans.xml)
 void setSecurityConfigMap(java.util.Map<java.lang.String,NativeSecurityConfig> securityConfigMap)
          set security config MapNativeSecurityConfig> where keys are WSEndpoint names.
 void visitMTOM(WSEndpoint endpoint)
          
 void visitWSAddressing(WSEndpoint endpoint)
          
 void visitWSRM(WSEndpoint endpoint)
          
 void visitWSSecurity(WSEndpoint endpoint)
           Note it uses NativeSecurityConfig associated to passed endpoint with getSecurityConfigMap().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReflectionEnablerDelegate

public ReflectionEnablerDelegate()
Method Detail

visitMTOM

public void visitMTOM(WSEndpoint endpoint)
               throws java.lang.UnsupportedOperationException

Specified by:
visitMTOM in interface EnablerDelegate
Throws:
java.lang.UnsupportedOperationException
See Also:
EnablerDelegate.visitMTOM(org.jboss.wise.core.client.WSEndpoint)

visitWSAddressing

public void visitWSAddressing(WSEndpoint endpoint)
                       throws java.lang.UnsupportedOperationException

Specified by:
visitWSAddressing in interface EnablerDelegate
Throws:
java.lang.UnsupportedOperationException
See Also:
EnablerDelegate.visitWSAddressing(org.jboss.wise.core.client.WSEndpoint)

visitWSRM

public void visitWSRM(WSEndpoint endpoint)
               throws java.lang.UnsupportedOperationException

Specified by:
visitWSRM in interface EnablerDelegate
Throws:
java.lang.UnsupportedOperationException
See Also:
EnablerDelegate.visitWSRM(org.jboss.wise.core.client.WSEndpoint)

visitWSSecurity

public void visitWSSecurity(WSEndpoint endpoint)
                     throws java.lang.UnsupportedOperationException,
                            java.lang.IllegalStateException
Note it uses NativeSecurityConfig associated to passed endpoint with getSecurityConfigMap(). If there isn't specific configuration associated to this endpoint getDefaultSecurityConfig() is used. Note also if specific configuration doesn't define keystoreLocation or truststoreLocation they are taken form defaultSecurityConfig.

Specified by:
visitWSSecurity in interface EnablerDelegate
Throws:
java.lang.UnsupportedOperationException
java.lang.IllegalStateException
See Also:
EnablerDelegate.visitWSSecurity(org.jboss.wise.core.client.WSEndpoint)

getSecurityConfigMap

public final java.util.Map<java.lang.String,NativeSecurityConfig> getSecurityConfigMap()
get security config MapNativeSecurityConfig> where keys are WSEndpoint names. Intended to be used for IOC (jboss-beans.xml)

Returns:
securityConfigMap

setSecurityConfigMap

public final void setSecurityConfigMap(java.util.Map<java.lang.String,NativeSecurityConfig> securityConfigMap)
set security config MapNativeSecurityConfig> where keys are WSEndpoint names. Intended to be used for IOC (jboss-beans.xml)

Parameters:
securityConfigMap - Sets securityConfigMap to the specified value.

getDefaultSecurityConfig

public final NativeSecurityConfig getDefaultSecurityConfig()
get default s NativeSecurityConfig used when WSEndpoint on which this visitor is enabling extensions isn't find in getSecurityConfigMap() Intended to be used for IOC (jboss-beans.xml)

Returns:
defaultSecurityConfig

setDefaultSecurityConfig

public final void setDefaultSecurityConfig(NativeSecurityConfig defaultSecurityConfig)
set default s NativeSecurityConfig used when WSEndpoint on which this visitor is enabling extensions isn't find in getSecurityConfigMap() Intended to be used for IOC (jboss-beans.xml)

Parameters:
defaultSecurityConfig - Sets defaultSecurityConfig to the specified value.