org.codehaus.xfire.service.invoker
Class ObjectInvoker

java.lang.Object
  extended by org.codehaus.xfire.service.invoker.AbstractInvoker
      extended by org.codehaus.xfire.service.invoker.ObjectInvoker
All Implemented Interfaces:
Invoker

public class ObjectInvoker
extends AbstractInvoker

An invoker which instantiates classes automatically based on the Service's scope. The default scope is SCOPE_APPLICATION, which creates once instance to use for the lifetime of the invoker.

Since:
Nov 16, 2004
Author:
Dan Diephouse, Ben Yu

Field Summary
static java.lang.String SERVICE_IMPL_CLASS
          Constant to denote the implementation class for the service.
 
Constructor Summary
ObjectInvoker(ScopePolicy policy)
           
 
Method Summary
 ScopePolicy getScope()
          Get the scope policy used by this class.
 java.lang.Object getServiceObject(MessageContext context)
          Creates and returns a service object depending on the scope.
 java.lang.Object invoke(java.lang.reflect.Method m, java.lang.Object[] params, MessageContext context)
           
 
Methods inherited from class org.codehaus.xfire.service.invoker.AbstractInvoker
getContext, getMostSpecificMethod, isJdkDynamicProxy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVICE_IMPL_CLASS

public static final java.lang.String SERVICE_IMPL_CLASS
Constant to denote the implementation class for the service.

See Also:
Constant Field Values
Constructor Detail

ObjectInvoker

public ObjectInvoker(ScopePolicy policy)
Method Detail

invoke

public java.lang.Object invoke(java.lang.reflect.Method m,
                               java.lang.Object[] params,
                               MessageContext context)
                        throws XFireFault
Specified by:
invoke in interface Invoker
Overrides:
invoke in class AbstractInvoker
Throws:
XFireFault

getServiceObject

public java.lang.Object getServiceObject(MessageContext context)
                                  throws XFireFault
Description copied from class: AbstractInvoker
Creates and returns a service object depending on the scope.

Specified by:
getServiceObject in class AbstractInvoker
Throws:
XFireFault

getScope

public ScopePolicy getScope()
Get the scope policy used by this class.



Copyright © 2004-2008. All Rights Reserved.