org.codehaus.xfire.service.invoker
Class ObjectInvoker

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

public final class ObjectInvoker
extends java.lang.Object
implements Invoker

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 invoke(java.lang.reflect.Method m, java.lang.Object[] params, MessageContext context)
           
 
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
Throws:
XFireFault

getScope

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



Copyright © 2004-2006 Envoi Solutions LLC. All Rights Reserved.