org.codehaus.xfire.service.invoker
Class SessionScopePolicy

java.lang.Object
  extended by org.codehaus.xfire.service.invoker.SessionScopePolicy
All Implemented Interfaces:
ScopePolicy

public class SessionScopePolicy
extends Object
implements ScopePolicy

This scope policy implements one servant instance per session.

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

Constructor Summary
SessionScopePolicy()
           
 
Method Summary
 Factory applyScope(Factory f, MessageContext ctxt)
          Apply scope policy to a Factory object so that the instance created by the Factory object can be cached properly.
protected  Object getServiceKey(Service service)
          Get the key for caching a service.
static ScopePolicy instance()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SessionScopePolicy

public SessionScopePolicy()
Method Detail

getServiceKey

protected Object getServiceKey(Service service)
Get the key for caching a service.

Parameters:
service - the service.
Returns:
the key.

applyScope

public Factory applyScope(Factory f,
                          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.

toString

public String toString()
Overrides:
toString in class Object

instance

public static ScopePolicy instance()


Copyright © 2004-2013. All Rights Reserved.