org.apache.cxf.service.invoker
Class SessionScopePolicy
java.lang.Object
org.apache.cxf.service.invoker.SessionScopePolicy
- All Implemented Interfaces:
- ScopePolicy
public class SessionScopePolicy
- extends java.lang.Object
- implements ScopePolicy
This scope policy implements one servant instance per session.
- Author:
- Ben Yu Feb 6, 2006 11:41:08 AM
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SessionScopePolicy
public SessionScopePolicy()
getServiceKey
protected java.lang.Object getServiceKey(Service service)
- Get the key for caching a service.
- Parameters:
service
- the service.
- Returns:
- the key.
applyScope
public Factory applyScope(Factory f,
Exchange ex)
- 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.ex
- The message exchange which the scope is applied to.
- Returns:
- the Factory object that honors the scope.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
instance
public static ScopePolicy instance()
Apache CXF