Class RootContainer.PortalContainerPreInitTask

java.lang.Object
org.exoplatform.container.RootContainer.PortalContainerPreInitTask
All Implemented Interfaces:
RootContainer.PortalContainerInitTask
Direct Known Subclasses:
PortalContainer.RegisterTask
Enclosing class:
RootContainer

public abstract static class RootContainer.PortalContainerPreInitTask extends Object implements RootContainer.PortalContainerInitTask
This class is used to define a task that needs to be launched before the initialization of a portal container
  • Field Details

  • Constructor Details

    • PortalContainerPreInitTask

      public PortalContainerPreInitTask()
  • Method Details

    • alreadyExists

      public final boolean alreadyExists(PortalContainer portalContainer)
      This method allows the implementation to define what the state "already exists" means for a portal container
      Specified by:
      alreadyExists in interface RootContainer.PortalContainerInitTask
      Parameters:
      portalContainer - the value of the current portal container
      Returns:
      true if the portal container exists according to the task requirements, false otherwise
    • onAlreadyExists

      public final void onAlreadyExists(jakarta.servlet.ServletContext context, PortalContainer portalContainer)
      This method is called if the related portal container has already been registered
      Specified by:
      onAlreadyExists in interface RootContainer.PortalContainerInitTask
      Parameters:
      context - the servlet context of the web application
      portalContainer - the value of the current portal container
    • getType

      public final String getType()
      Specified by:
      getType in interface RootContainer.PortalContainerInitTask
      Returns:
      the type of the task