toolbox.services.ws
Class SimpleCXFInvoker

Package class diagram package SimpleCXFInvoker
java.lang.Object
  extended by org.apache.cxf.service.invoker.AbstractInvoker
      extended by toolbox.services.ws.SimpleCXFInvoker
All Implemented Interfaces:
org.apache.cxf.service.invoker.Invoker

public class SimpleCXFInvoker
extends org.apache.cxf.service.invoker.AbstractInvoker

CXF Web Service Framework Invoker implementation to facilitate the exposure of Java Toolbox Service implementations as Web Services.


Constructor Summary
SimpleCXFInvoker()
          Default constructor.
 
Method Summary
 java.lang.Object getServiceObject(org.apache.cxf.message.Exchange context)
          Return a service instance from the configured registry to be used as the invocation target of a web service.
 void setExportExchange(java.lang.String exportEx)
          Set the indicator flag that informs this invoker to expose the exchange to the service object.
 void setServiceClassName(java.lang.String className)
          Set the service class name.
 void setServiceName(java.lang.String svcName)
          Set the name of the service that must be used to obtain the service object.
 void setServiceRegistryName(java.lang.String regName)
          Set the name of the ServiceRegistry instance to use.
 
Methods inherited from class org.apache.cxf.service.invoker.AbstractInvoker
adjustMethodAndParams, checkSuspendedInvocation, createFault, getMostSpecificMethod, insertExchange, invoke, invoke, isJdkDynamicProxy, performInvocation, releaseServiceObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleCXFInvoker

public SimpleCXFInvoker()
Default constructor.

Method Detail

setExportExchange

public void setExportExchange(java.lang.String exportEx)
Set the indicator flag that informs this invoker to expose the exchange to the service object. The service object must implement the CXFContext interface of this package.

Parameters:
exportEx - A string indicating wheter to expose the exchage to the service object. Valid values true|false.

setServiceRegistryName

public void setServiceRegistryName(java.lang.String regName)
Set the name of the ServiceRegistry instance to use.

Parameters:
regName - String containing the registry name.

setServiceName

public void setServiceName(java.lang.String svcName)
Set the name of the service that must be used to obtain the service object.

Parameters:
svcName - String containing the service name.

setServiceClassName

public void setServiceClassName(java.lang.String className)
Set the service class name. This indicates the interface type of the service.

Parameters:
className - String containing the class name.

getServiceObject

public java.lang.Object getServiceObject(org.apache.cxf.message.Exchange context)
Return a service instance from the configured registry to be used as the invocation target of a web service.

Specified by:
getServiceObject in class org.apache.cxf.service.invoker.AbstractInvoker
Parameters:
context - The context.
Returns:
Object instance containing a reference to the service.