Package org.exoplatform.container
Class RootContainer.PortalContainerPostInitTask
java.lang.Object
org.exoplatform.container.RootContainer.PortalContainerPostInitTask
- All Implemented Interfaces:
RootContainer.PortalContainerInitTask
- Direct Known Subclasses:
PortalContainer.UnregisterTask
- Enclosing class:
RootContainer
public abstract static class RootContainer.PortalContainerPostInitTask
extends Object
implements RootContainer.PortalContainerInitTask
This class is used to define a task that needs to be launched after the initialization of a
portal container
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanalreadyExists(PortalContainer portalContainer) This method allows the implementation to define what the state "already exists" means for a portal containerfinal StringgetType()final voidonAlreadyExists(jakarta.servlet.ServletContext context, PortalContainer portalContainer) This method is called if the related portal container has already been registeredMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.exoplatform.container.RootContainer.PortalContainerInitTask
execute
-
Field Details
-
TYPE
The name of the type of task- See Also:
-
-
Constructor Details
-
PortalContainerPostInitTask
public PortalContainerPostInitTask()
-
-
Method Details
-
alreadyExists
This method allows the implementation to define what the state "already exists" means for a portal container- Specified by:
alreadyExistsin interfaceRootContainer.PortalContainerInitTask- Parameters:
portalContainer- the value of the current portal container- Returns:
trueif the portal container exists according to the task requirements,falseotherwise
-
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:
onAlreadyExistsin interfaceRootContainer.PortalContainerInitTask- Parameters:
context- the servlet context of the web applicationportalContainer- the value of the current portal container
-
getType
- Specified by:
getTypein interfaceRootContainer.PortalContainerInitTask- Returns:
- the type of the task
-