Class SessionScope
- java.lang.Object
-
- com.aspectran.core.component.bean.scope.AbstractScope
-
- com.aspectran.core.component.bean.scope.SessionScope
-
- All Implemented Interfaces:
Scope
,NonPersistent
,SessionBindingListener
,java.util.EventListener
- Direct Known Subclasses:
HttpSessionScope
public class SessionScope extends AbstractScope implements SessionBindingListener
The Class SessionScope.- Since:
- 2011. 3. 12.
-
-
Constructor Summary
Constructors Constructor Description SessionScope()
Instantiates a new Session scope.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.locks.ReadWriteLock
getScopeLock()
Returns the scope lock.ScopeType
getScopeType()
Returns the scope type.void
putBeanInstance(Activity activity, BeanRule beanRule, BeanInstance beanInstance)
Saves an instantiated bean with the given bean rule into the scope.static SessionScope
restore(Activity activity, BeanRuleRegistry beanRuleRegistry)
void
valueUnbound(Session session, java.lang.String name, java.lang.Object value)
Notifies the object that it is being unbound from a session and identifies the session.-
Methods inherited from class com.aspectran.core.component.bean.scope.AbstractScope
containsBeanRule, destroy, destroy, getBeanInstance, getBeanRule
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.aspectran.core.component.session.SessionBindingListener
valueBound
-
-
-
-
Method Detail
-
getScopeType
public ScopeType getScopeType()
Description copied from interface:Scope
Returns the scope type.- Specified by:
getScopeType
in interfaceScope
- Returns:
- the scope type
-
getScopeLock
public java.util.concurrent.locks.ReadWriteLock getScopeLock()
Description copied from interface:Scope
Returns the scope lock.- Specified by:
getScopeLock
in interfaceScope
- Returns:
- the scope lock
-
valueUnbound
public void valueUnbound(Session session, java.lang.String name, java.lang.Object value)
Description copied from interface:SessionBindingListener
Notifies the object that it is being unbound from a session and identifies the session.- Specified by:
valueUnbound
in interfaceSessionBindingListener
- Parameters:
session
- the session to which the object is bound or unboundname
- the name with which the object is bound or unboundvalue
- the value of the attribute that has been added, removed or replaced.- See Also:
SessionBindingListener.valueBound(com.aspectran.core.component.session.Session, java.lang.String, java.lang.Object)
-
putBeanInstance
public void putBeanInstance(Activity activity, BeanRule beanRule, BeanInstance beanInstance)
Description copied from interface:Scope
Saves an instantiated bean with the given bean rule into the scope.- Specified by:
putBeanInstance
in interfaceScope
- Overrides:
putBeanInstance
in classAbstractScope
- Parameters:
activity
- the current activitybeanRule
- the bean rule of the bean to savebeanInstance
- an instance of the bean
-
restore
public static SessionScope restore(Activity activity, BeanRuleRegistry beanRuleRegistry)
-
-