Class SessionListenerRegistrationBean

  • All Implemented Interfaces:
    com.aspectran.core.component.bean.ablility.InitializableBean, com.aspectran.core.component.bean.aware.ActivityContextAware, com.aspectran.core.component.bean.aware.Aware, com.aspectran.core.component.session.SessionListenerRegistration

    public class SessionListenerRegistrationBean
    extends com.aspectran.core.activity.InstantActivitySupport
    implements com.aspectran.core.component.session.SessionListenerRegistration, com.aspectran.core.component.bean.ablility.InitializableBean
    A Bean to register session listener in session manager.

    Created: 2020/05/09

    Since:
    6.7.0
    • Constructor Summary

      Constructors 
      Constructor Description
      SessionListenerRegistrationBean​(java.lang.String towServerId, java.lang.String deploymentName)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void initialize()  
      void register​(com.aspectran.core.component.session.SessionListener listener)  
      void remove​(com.aspectran.core.component.session.SessionListener listener)  
      • Methods inherited from class com.aspectran.core.activity.InstantActivitySupport

        getActivityContext, getApplicationAdapter, getAvailableActivity, getBeanRegistry, getCurrentActivity, getEnvironment, getMessageSource, getTemplateRenderer, hasCurrentActivity, instantActivity, instantActivity, setActivityContext
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SessionListenerRegistrationBean

        public SessionListenerRegistrationBean​(java.lang.String towServerId,
                                               java.lang.String deploymentName)
    • Method Detail

      • register

        public void register​(com.aspectran.core.component.session.SessionListener listener)
        Specified by:
        register in interface com.aspectran.core.component.session.SessionListenerRegistration
      • remove

        public void remove​(com.aspectran.core.component.session.SessionListener listener)
        Specified by:
        remove in interface com.aspectran.core.component.session.SessionListenerRegistration
      • initialize

        public void initialize()
                        throws java.lang.Exception
        Specified by:
        initialize in interface com.aspectran.core.component.bean.ablility.InitializableBean
        Throws:
        java.lang.Exception