jfun.yan.xfire
Class YanServiceDecorator

java.lang.Object
  extended by jfun.yan.xfire.YanServiceDecorator
All Implemented Interfaces:
ServiceDecorator

public class YanServiceDecorator
extends java.lang.Object
implements ServiceDecorator

This decorator implementation uses a Yan Container object to obtain the Factory object for a given service type. This Factory object together with a ScopePolicy object are then used to construct an Invoker instance and set the Invoker instance to the Service object.

Author:
Ben Yu Jan 31, 2006 12:25:17 PM

Constructor Summary
YanServiceDecorator(Container yan, ScopePolicy scope)
          Create a YanServiceDecorator object.
 
Method Summary
 org.codehaus.xfire.service.Service decorate(org.codehaus.xfire.service.Service service)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

YanServiceDecorator

public YanServiceDecorator(Container yan,
                           ScopePolicy scope)
Create a YanServiceDecorator object.

Parameters:
yan - the Container object.
scope - the ScopePolicy object.
Method Detail

decorate

public org.codehaus.xfire.service.Service decorate(org.codehaus.xfire.service.Service service)
Specified by:
decorate in interface ServiceDecorator