|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.xfire.service.binding.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. |
java.lang.reflect.Method |
getMostSpecificMethod(java.lang.reflect.Method method,
java.lang.Class targetClass)
Given a method, which may come from an interface, and a targetClass used in the current AOP invocation, find the most specific method if there is one. |
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)
|
boolean |
isJdkDynamicProxy(java.lang.Object object)
Return whether the given object is a J2SE dynamic proxy. |
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 boolean isJdkDynamicProxy(java.lang.Object object)
object
- the object to checkProxy.isProxyClass(java.lang.Class)
public java.lang.reflect.Method getMostSpecificMethod(java.lang.reflect.Method method, java.lang.Class targetClass)
method
- method to be invoked, which may come from an interfacetargetClass
- target class for the curren invocation. May
be null
or may not even implement the method.
public int getScope()
public void setScope(int scope)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |