Class DefaultDispatchedBean

java.lang.Object
org.eclnt.jsfserver.managedbean.DefaultDispatchedBean
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
WorkpageDispatchedBean, WorkplaceFavorites, WorkplaceFavoritesSquare, WorkplaceFunctionTree

public class DefaultDispatchedBean extends Object implements Serializable
Default implementation of bean that is managed by a dispatcher. The bean gets passed the dispatcher that is owning the bean via its constructor.
See Also:
  • Constructor Details

    • DefaultDispatchedBean

      public DefaultDispatchedBean(IDispatcher dispatcher)
  • Method Details

    • getOwningDispatcher

      public IDispatcher getOwningDispatcher()
    • ccDestroy

      protected void ccDestroy()
      Called as part of the "destruction" of the Dispatcher-instance.
    • setDispatcher

      public void setDispatcher(IDispatcher dispatcher)
      Set the dispatcher. By default the dispatche is passed within the constructor. In order to support CDI-scenarios requiring constructors without any parameters you also can set the dispatcher - but need to do this directly after the creation of the instance! (Typically you need to update the Disptacher itself in order to do this.) This method will throw a runtime exception if the dispatcher is already set within the component.