ilog.webui.dhtml

Class IlxWManager

    • Method Detail

      • valueBound

        public void valueBound(javax.servlet.http.HttpSessionBindingEvent event)
        Defines the HttpSessionBindingListener interface.
        Specified by:
        valueBound in interface javax.servlet.http.HttpSessionBindingListener
      • valueUnbound

        public void valueUnbound(javax.servlet.http.HttpSessionBindingEvent event)
        Defines the HttpSessionBindingListener interface.
        Specified by:
        valueUnbound in interface javax.servlet.http.HttpSessionBindingListener
      • releaseManager

        public static void releaseManager(javax.servlet.http.HttpSession session)
        Releases the manager from the session. This method must be called at the end of the session if the IlxWConfig.noSessionAttributes flag is set to true, otherwise, since in this mode the managers are stored in a singleton map, they will never be released.

        If the IlxWConfig.noSessionAttributes flag is false (this is the default behavior), then you don't need to call this method, since it the manager corresponding to this session will be GCed when the session is GCed.

      • getManager

        public static IlxWManager getManager(javax.servlet.http.HttpSession session)
        Gets the manager associated with the session or creates that manager if this is the first time this method is called since the session was created.
      • getSession

        public javax.servlet.http.HttpSession getSession()
        Gets the session in which this manager has been registered.
      • cleanup

        public void cleanup()
        Called by the controller in order to cleanup the queue containing the components no longer referenced. Actually the manager holds an hashmap with component IDs as keys, and weak values on components as values. When a component is no longer referenced (or more precisely, the only reference is the weak reference), the component is moved in this queue.
      • notifyDependencies

        public void notifyDependencies(IlxWPort port)
        Specified by:
        notifyDependencies in interface ilog.webui.dhtml.IlxWDependencyProvider
        Overrides:
        notifyDependencies in class IlxWContainer

© Copyright IBM Corp. 1987, 2015