org.codehaus.xfire.service.invoker
Class ObjectInvoker
java.lang.Object
org.codehaus.xfire.service.invoker.AbstractInvoker
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
ObjectInvoker
public ObjectInvoker(ScopePolicy policy)
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-2010. All Rights Reserved.