jfun.yan.xfire
Class FactoryInvoker

java.lang.Object
  extended by org.codehaus.xfire.service.binding.ObjectInvoker
      extended by jfun.yan.xfire.FactoryInvoker
All Implemented Interfaces:
org.codehaus.xfire.service.binding.Invoker

public class FactoryInvoker
extends org.codehaus.xfire.service.binding.ObjectInvoker

This invoker implementation calls a Factory to create the service object and then applies a scope policy for caching.

Author:
Ben Yu Feb 2, 2006 12:55:59 PM

Field Summary
 
Fields inherited from class org.codehaus.xfire.service.binding.ObjectInvoker
SCOPE_APPLICATION, SCOPE_REQUEST, SCOPE_SESSION, SERVICE_IMPL_CLASS
 
Constructor Summary
FactoryInvoker(Factory factory, ScopePolicy scope)
          Create a FactoryInvoker object.
 
Method Summary
 java.lang.Object getServiceObject(org.codehaus.xfire.MessageContext context)
           
 
Methods inherited from class org.codehaus.xfire.service.binding.ObjectInvoker
createServiceObject, getScope, invoke, setScope
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FactoryInvoker

public FactoryInvoker(Factory factory,
                      ScopePolicy scope)
Create a FactoryInvoker object.

Parameters:
factory - the factory used to create service object.
scope - the scope policy. Null for default.
Method Detail

getServiceObject

public java.lang.Object getServiceObject(org.codehaus.xfire.MessageContext context)
                                  throws org.codehaus.xfire.fault.XFireFault
Overrides:
getServiceObject in class org.codehaus.xfire.service.binding.ObjectInvoker
Throws:
org.codehaus.xfire.fault.XFireFault