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
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.ReadWriteLockgetScopeLock()Returns the scope lock.ScopeTypegetScopeType()Returns the scope type.voidputBeanInstance(Activity activity, BeanRule beanRule, BeanInstance beanInstance)Saves an instantiated bean with the given bean rule into the scope.static SessionScoperestore(Activity activity, BeanRuleRegistry beanRuleRegistry)voidvalueUnbound(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:ScopeReturns the scope type.- Specified by:
getScopeTypein interfaceScope- Returns:
- the scope type
-
getScopeLock
public java.util.concurrent.locks.ReadWriteLock getScopeLock()
Description copied from interface:ScopeReturns the scope lock.- Specified by:
getScopeLockin interfaceScope- Returns:
- the scope lock
-
valueUnbound
public void valueUnbound(Session session, java.lang.String name, java.lang.Object value)
Description copied from interface:SessionBindingListenerNotifies the object that it is being unbound from a session and identifies the session.- Specified by:
valueUnboundin 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:ScopeSaves an instantiated bean with the given bean rule into the scope.- Specified by:
putBeanInstancein interfaceScope- Overrides:
putBeanInstancein 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)
-
-