JBoss Wise API

org.jboss.wise.core.client.impl.reflection
Class WSDynamicClientImpl

java.lang.Object
  extended by org.jboss.wise.core.client.impl.reflection.WSDynamicClientImpl
All Implemented Interfaces:
WSDynamicClient

@ThreadSafe
public class WSDynamicClientImpl
extends java.lang.Object
implements WSDynamicClient

This is the Wise core, i.e. the JAX-WS client that handles wsdl retrieval & parsing, invocations, etc.

Since:
Author:
Stefano Maestri, stefano.maestri@javalinux.it

Constructor Summary
  WSDynamicClientImpl(WSDynamicClientBuilder builder)
           
protected WSDynamicClientImpl(WSDynamicClientBuilder builder, WSConsumer consumer)
           
protected WSDynamicClientImpl(WSDynamicClientBuilder builder, WSConsumer consumer, org.milyn.Smooks smooks)
           
 
Method Summary
 void close()
           
 java.net.URLClassLoader getClassLoader()
           
 org.milyn.Smooks getSmooksInstance()
           
 java.lang.String getTmpDir()
           
 EnablerDelegate getWSExtensionEnablerDelegate()
          
 WSMethod getWSMethod(java.lang.String serviceName, java.lang.String portName, java.lang.String operationName)
          It return directly the method to invoke the specified action on specified port of specified service.
 java.util.Map<java.lang.String,WSService> processServices()
          Create the services' map and gives it back.
 void setClassLoader(java.net.URLClassLoader classLoader)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSDynamicClientImpl

public WSDynamicClientImpl(WSDynamicClientBuilder builder)
                    throws WiseRuntimeException
Throws:
WiseRuntimeException

WSDynamicClientImpl

protected WSDynamicClientImpl(WSDynamicClientBuilder builder,
                              WSConsumer consumer)
                       throws WiseRuntimeException
Throws:
WiseRuntimeException

WSDynamicClientImpl

protected WSDynamicClientImpl(WSDynamicClientBuilder builder,
                              WSConsumer consumer,
                              org.milyn.Smooks smooks)
                       throws WiseRuntimeException
Throws:
WiseRuntimeException
Method Detail

processServices

public java.util.Map<java.lang.String,WSService> processServices()
                                                          throws java.lang.IllegalStateException
Create the services' map and gives it back. Useful when Wise is used for interactive explore and invoke a service.

Specified by:
processServices in interface WSDynamicClient
Returns:
The Map of WSEndpoint with symbolic names as keys
Throws:
java.lang.IllegalStateException - thrown if method can't process or load generated classes to find a service
See Also:
WSDynamicClient.processServices()

getWSMethod

public WSMethod getWSMethod(java.lang.String serviceName,
                            java.lang.String portName,
                            java.lang.String operationName)
                     throws ResourceNotAvailableException
It return directly the method to invoke the specified action on specified port of specified service. It is the base method for "one line of code invocation" (see "Wise-core Programmers guide" for more information)

Specified by:
getWSMethod in interface WSDynamicClient
Returns:
the WSMethod class to use for effective service invocation
Throws:
ResourceNotAvailableException - when the specified service, port or operation can not be found
See Also:
WSDynamicClient.getWSMethod(String, String, String)

getClassLoader

public final java.net.URLClassLoader getClassLoader()
Specified by:
getClassLoader in interface WSDynamicClient
Returns:
The classLoader used to load generated class.

setClassLoader

public final void setClassLoader(java.net.URLClassLoader classLoader)

getWSExtensionEnablerDelegate

public EnablerDelegate getWSExtensionEnablerDelegate()

Specified by:
getWSExtensionEnablerDelegate in interface WSDynamicClient
Returns:
the EnablerDelegate used to enable the WS-* for all endpoint attached all serivices attached to this WSDynamicClient.
See Also:
WSDynamicClient.getWSExtensionEnablerDelegate()

getSmooksInstance

public org.milyn.Smooks getSmooksInstance()
Specified by:
getSmooksInstance in interface WSDynamicClient
Returns:
smooksInstance

close

public void close()
Specified by:
close in interface WSDynamicClient

getTmpDir

public java.lang.String getTmpDir()
Returns:
tmpDir

JBoss Wise API

Copyright © 2008-2009 Jboss.org. All Rights Reserved.