|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.xfire.service.binding.ObjectInvoker
public class ObjectInvoker
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.
Field Summary | |
---|---|
static int |
SCOPE_APPLICATION
Scope to denote that a single implementation instance should exist for the lifetime of this invoker and should be reused for every request. |
static int |
SCOPE_REQUEST
Scope to denote that a new instance of the service implementation should be created on every call. |
static int |
SCOPE_SESSION
Scope for storing one object per session. |
static java.lang.String |
SERVICE_IMPL_CLASS
Constant to denote the implementation class for the service. |
Constructor Summary | |
---|---|
ObjectInvoker()
|
Method Summary | |
---|---|
java.lang.Object |
createServiceObject(Service service)
Override this method to control how XFire creates the service object. |
int |
getScope()
|
java.lang.Object |
getServiceObject(MessageContext context)
Creates and returns a service object depending on the scope. |
java.lang.Object |
invoke(java.lang.reflect.Method method,
java.lang.Object[] params,
MessageContext context)
|
void |
setScope(int scope)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int SCOPE_APPLICATION
public static final int SCOPE_REQUEST
public static final int SCOPE_SESSION
public static final java.lang.String SERVICE_IMPL_CLASS
Constructor Detail |
---|
public ObjectInvoker()
Method Detail |
---|
public java.lang.Object invoke(java.lang.reflect.Method method, java.lang.Object[] params, MessageContext context) throws XFireFault
invoke
in interface Invoker
XFireFault
public java.lang.Object getServiceObject(MessageContext context) throws XFireFault
XFireFault
public java.lang.Object createServiceObject(Service service) throws XFireFault
service
-
XFireFault
public int getScope()
public void setScope(int scope)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |