org.codehaus.xfire.service.invoker
Class FactoryInvoker

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

public class FactoryInvoker
extends AbstractInvoker

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

Constructor Summary
FactoryInvoker(Factory factory, ScopePolicy scope)
          Create a FactoryInvoker object.
 
Method Summary
 Object getServiceObject(MessageContext context)
          Creates and returns a service object depending on the scope.
 
Methods inherited from class org.codehaus.xfire.service.invoker.AbstractInvoker
getContext, getMostSpecificMethod, invoke, isJdkDynamicProxy
 
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 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


Copyright © 2004-2013. All Rights Reserved.