org.jboss.webservice.server
Class InvokerProviderSimple

java.lang.Object
  extended byorg.jboss.axis.handlers.BasicHandler (src) 
      extended byorg.jboss.axis.providers.BasicProvider (src) 
          extended byorg.jboss.axis.providers.java.JavaProvider (src) 
              extended byorg.jboss.axis.providers.java.RPCProvider (src) 
                  extended byorg.jboss.webservice.server.InvokerProviderSimple
All Implemented Interfaces:
Handler (src)

public class InvokerProviderSimple
extends RPCProvider (src)

A very simple reflection provider that invokes the method on the object that is given in the constructor of this provider.


Field Summary
 
Fields inherited from class org.jboss.axis.providers.java.RPCProvider (src)
RPC_INVOCATION
 
Fields inherited from class org.jboss.axis.providers.java.JavaProvider (src)
OPTION_ALLOWEDMETHODS, OPTION_CLASSNAME, OPTION_CLASSPATH, OPTION_IS_STATIC, OPTION_SCOPE, OPTION_WSDL_INPUTSCHEMA, OPTION_WSDL_PORTTYPE, OPTION_WSDL_SERVICEELEMENT, OPTION_WSDL_SERVICEPORT, OPTION_WSDL_TARGETNAMESPACE
 
Fields inherited from class org.jboss.axis.handlers.BasicHandler (src)
makeLockable, name, options
 
Constructor Summary
InvokerProviderSimple(java.lang.Object targetService)
          Creates new InvokerProviderSimple
 
Method Summary
protected  java.lang.String getServiceClassName(Handler (src)  service)
          Return the class name of the service
 java.lang.Object getServiceObject(MessageContext (src)  msgContext, Handler (src)  service, java.lang.String clsName, IntHolder (src)  scopeHolder)
          Get the service object whose method actually provides the service.
protected  java.lang.Object invokeMethod(MessageContext (src)  msgContext, java.lang.reflect.Method method, java.lang.Object obj, java.lang.Object[] argValues)
          This method encapsulates the method invocation.
 
Methods inherited from class org.jboss.axis.providers.java.RPCProvider (src)
checkMethodName, createRPCInvocation, invokeTarget, processMessage
 
Methods inherited from class org.jboss.axis.providers.java.JavaProvider (src)
generateWSDL, getServiceClass, getServiceClassNameOptionName, initServiceDesc, invoke, makeNewServiceObject, processException
 
Methods inherited from class org.jboss.axis.providers.BasicProvider (src)
addOperation, getOperationName, getOperationNames, getOperationQNames
 
Methods inherited from class org.jboss.axis.handlers.BasicHandler (src)
canHandleBlock, cleanup, getDeploymentData, getName, getOption, getOptions, getUnderstoodHeaders, init, initHashtable, onFault, setName, setOption, setOptionDefault, setOptions, setOptionsLockable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InvokerProviderSimple

public InvokerProviderSimple(java.lang.Object targetService)
Creates new InvokerProviderSimple

Method Detail

invokeMethod

protected java.lang.Object invokeMethod(MessageContext (src)  msgContext,
                                        java.lang.reflect.Method method,
                                        java.lang.Object obj,
                                        java.lang.Object[] argValues)
                                 throws java.lang.Exception
This method encapsulates the method invocation.

Overrides:
invokeMethod in class RPCProvider (src)
Parameters:
msgContext - MessageContext
method - the target method.
obj - the target object
argValues - the method arguments
Throws:
java.lang.Exception

getServiceObject

public java.lang.Object getServiceObject(MessageContext (src)  msgContext,
                                         Handler (src)  service,
                                         java.lang.String clsName,
                                         IntHolder (src)  scopeHolder)
                                  throws java.lang.Exception
Get the service object whose method actually provides the service. May look up in session table.

Overrides:
getServiceObject in class JavaProvider (src)
Throws:
java.lang.Exception

getServiceClassName

protected java.lang.String getServiceClassName(Handler (src)  service)
Return the class name of the service

Overrides:
getServiceClassName in class JavaProvider (src)