jfun.yan.xfire
Class RequestScopePolicy

java.lang.Object
  extended by jfun.yan.xfire.RequestScopePolicy
All Implemented Interfaces:
ScopePolicy

public class RequestScopePolicy
extends java.lang.Object
implements ScopePolicy

This scope policy implements one servant instance per request.

Author:
Ben Yu Feb 6, 2006 11:38:08 AM

Constructor Summary
protected RequestScopePolicy()
           
 
Method Summary
 Factory applyScope(Factory f, org.codehaus.xfire.MessageContext ctxt)
          Apply scope policy to a Factory object so that the instance created by the Factory object can be cached properly.
static ScopePolicy instance()
          To get an instance of request scope policy.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestScopePolicy

protected RequestScopePolicy()
Method Detail

applyScope

public Factory applyScope(Factory f,
                          org.codehaus.xfire.MessageContext ctxt)
Description copied from interface: ScopePolicy
Apply scope policy to a Factory object so that the instance created by the Factory object can be cached properly.

Specified by:
applyScope in interface ScopePolicy
Parameters:
f - the Factory object.
ctxt - the MessageContext object.
Returns:
the Factory object that honors the scope.

instance

public static ScopePolicy instance()
To get an instance of request scope policy.