Class PortletApplicationLifeCycle
- java.lang.Object
-
- org.gatein.pc.portlet.impl.container.LifeCycle
-
- org.gatein.pc.portlet.impl.container.PortletApplicationLifeCycle
-
- All Implemented Interfaces:
ManagedObject,ManagedPortletApplication
public class PortletApplicationLifeCycle extends LifeCycle implements ManagedPortletApplication
- Version:
- $Revision: 630 $
- Author:
- Julien Viet
-
-
Constructor Summary
Constructors Constructor Description PortletApplicationLifeCycle(ManagedObjectRegistryEventListener listener, PortletApplicationContext portletApplicationContext, PortletApplicationObject portletApplication)PortletApplicationLifeCycle(PortletApplicationContext portletApplicationContext, PortletApplicationObject portletApplication)
-
Method Summary
-
Methods inherited from class org.gatein.pc.portlet.impl.container.LifeCycle
getFailure, getStatus, managedDestroy, managedStart
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.gatein.pc.portlet.container.managed.ManagedObject
getFailure, getStatus, managedDestroy, managedStart
-
-
-
-
Constructor Detail
-
PortletApplicationLifeCycle
public PortletApplicationLifeCycle(ManagedObjectRegistryEventListener listener, PortletApplicationContext portletApplicationContext, PortletApplicationObject portletApplication)
-
PortletApplicationLifeCycle
public PortletApplicationLifeCycle(PortletApplicationContext portletApplicationContext, PortletApplicationObject portletApplication)
-
-
Method Detail
-
create
public void create()
-
destroy
public void destroy()
-
addPortletContainer
public PortletContainerLifeCycle addPortletContainer(PortletContainerContext portletContainerContext, PortletContainerObject portletContainer)
-
addPortletFilter
public PortletFilterLifeCycle addPortletFilter(PortletFilterContext portletFilterContext, PortletFilterObject portletFilter)
-
addDependency
public void addDependency(PortletFilterLifeCycle portletFilterLifeCycle, PortletContainerLifeCycle portletContainerLifeCycle)
-
getDependencies
public Set<PortletFilterLifeCycle> getDependencies(PortletContainerLifeCycle portletContainerLifeCycle)
-
getDependencies
public Set<PortletContainerLifeCycle> getDependencies(PortletFilterLifeCycle portletFilterLifeCycle)
-
invokeCreate
protected void invokeCreate() throws Exception- Specified by:
invokeCreatein classLifeCycle- Throws:
Exception
-
invokeStart
protected void invokeStart() throws Exception- Specified by:
invokeStartin classLifeCycle- Throws:
Exception
-
promoteDependents
protected void promoteDependents(LifeCycleStatus to)
- Overrides:
promoteDependentsin classLifeCycle
-
demoteDependents
protected void demoteDependents(LifeCycleStatus to)
- Overrides:
demoteDependentsin classLifeCycle
-
invokeStop
protected void invokeStop()
- Specified by:
invokeStopin classLifeCycle
-
invokeDestroy
protected void invokeDestroy() throws Exception- Specified by:
invokeDestroyin classLifeCycle- Throws:
Exception
-
getId
public String getId()
- Specified by:
getIdin interfaceManagedPortletApplication
-
getDependencies
public Iterable<? extends ManagedObject> getDependencies()
- Specified by:
getDependenciesin interfaceManagedPortletApplication
-
getManagedPortletContainers
public Iterable<? extends PortletContainerLifeCycle> getManagedPortletContainers()
- Specified by:
getManagedPortletContainersin interfaceManagedPortletApplication
-
getManagedPortletContainer
public PortletContainerLifeCycle getManagedPortletContainer(String portletContainerId)
- Specified by:
getManagedPortletContainerin interfaceManagedPortletApplication
-
getManagedPortletFilters
public Iterable<? extends PortletFilterLifeCycle> getManagedPortletFilters()
- Specified by:
getManagedPortletFiltersin interfaceManagedPortletApplication
-
getManagedPortletFilter
public PortletFilterLifeCycle getManagedPortletFilter(String portletFilterId)
- Specified by:
getManagedPortletFilterin interfaceManagedPortletApplication
-
getPortletApplication
public PortletApplication getPortletApplication()
- Specified by:
getPortletApplicationin interfaceManagedPortletApplication
-
getListener
protected ManagedObjectRegistryEventListener getListener()
- Specified by:
getListenerin classLifeCycle
-
-