接口 AttributeBindingListener
- 所有超级接口:
EventListener
- 所有已知实现类:
DestructionCallbackBindingListener
Causes an object to be notified when it is bound to or unbound from a session.
The object is notified by an
WebSession object.
This may be as a result of a programmer explicitly unbinding an
attribute from a session, due to a session being invalidated, or due to a session timing out.- 从以下版本开始:
- 4.0 2022/10/30 14:17
- 作者:
- Harry Yang
- 另请参阅:
-
方法概要
修饰符和类型方法说明default voidvalueBound(WebSession session, String attributeName) Notifies the object that it is being bound to a session and identifies the session.default voidvalueUnbound(WebSession session, String attributeName) Notifies the object that it is being unbound from a session and identifies the session.
-
方法详细资料
-
valueBound
Notifies the object that it is being bound to a session and identifies the session.The default implementation takes no action.
- 参数:
session- web sessionattributeName- attribute name- 另请参阅:
-
valueUnbound
Notifies the object that it is being unbound from a session and identifies the session.The default implementation takes no action.
- 参数:
session- sessionattributeName- attribute name- 另请参阅:
-