Class PortletApplicationImpl
- java.lang.Object
-
- org.gatein.pc.portlet.impl.jsr168.PortletApplicationImpl
-
- All Implemented Interfaces:
PortletApplicationObject,PortletApplication
public class PortletApplicationImpl extends Object implements PortletApplicationObject
- Version:
- $Revision: 7226 $
- Author:
- Julien Viet
-
-
Field Summary
Fields Modifier and Type Field Description protected PortletApplicationContextcontext.protected ContainerPortletApplicationInfoinfo.protected org.exoplatform.services.log.LoglogLogger.protected PortletContextImplportletContext.protected LinkedHashMap<String,PortletContainer>portlets.protected javax.portlet.PortletURLGenerationListenerurlListener.
-
Constructor Summary
Constructors Constructor Description PortletApplicationImpl(ContainerPortletApplicationInfo info)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPortletContainer(PortletContainer container)Add a container.voidaddPortletFilter(PortletFilter filter)Add a filter.PortletApplicationContextgetContext()Returns the context related to this application.StringgetId()Return the web app id.ContainerPortletApplicationInfogetInfo()<T> TgetListener(Class<T> type)PortletContainergetPortletContainer(String name)Returns a specific container or null if it does not existSet<PortletContainer>getPortletContainers()Returns the set of related portlet containers.javax.portlet.PortletContextgetPortletContext()voidremovePortletContainer(PortletContainer container)Remove a container.voidremovePortletFilter(PortletFilter filter)Remove a filter.voidsetContext(PortletApplicationContext context)Set the context required by that application.voidstart()Starts the application only.voidstop()Stops the application only.StringtoString()
-
-
-
Field Detail
-
info
protected final ContainerPortletApplicationInfo info
.
-
log
protected final org.exoplatform.services.log.Log log
Logger.
-
context
protected PortletApplicationContext context
.
-
portlets
protected LinkedHashMap<String,PortletContainer> portlets
.
-
portletContext
protected PortletContextImpl portletContext
.
-
urlListener
protected javax.portlet.PortletURLGenerationListener urlListener
.
-
-
Constructor Detail
-
PortletApplicationImpl
public PortletApplicationImpl(ContainerPortletApplicationInfo info)
- Parameters:
info- the portlet application info
-
-
Method Detail
-
setContext
public void setContext(PortletApplicationContext context)
Description copied from interface:PortletApplicationObjectSet the context required by that application.- Specified by:
setContextin interfacePortletApplicationObject- Parameters:
context- the context
-
getId
public String getId()
Description copied from interface:PortletApplicationReturn the web app id.- Specified by:
getIdin interfacePortletApplication- Returns:
- the id
-
addPortletFilter
public void addPortletFilter(PortletFilter filter)
Description copied from interface:PortletApplicationObjectAdd a filter.- Specified by:
addPortletFilterin interfacePortletApplicationObject- Parameters:
filter- the filter
-
removePortletFilter
public void removePortletFilter(PortletFilter filter)
Description copied from interface:PortletApplicationObjectRemove a filter.- Specified by:
removePortletFilterin interfacePortletApplicationObject- Parameters:
filter- the filter
-
getInfo
public ContainerPortletApplicationInfo getInfo()
-
addPortletContainer
public void addPortletContainer(PortletContainer container)
Description copied from interface:PortletApplicationObjectAdd a container.- Specified by:
addPortletContainerin interfacePortletApplicationObject- Parameters:
container- the container
-
removePortletContainer
public void removePortletContainer(PortletContainer container)
Description copied from interface:PortletApplicationObjectRemove a container.- Specified by:
removePortletContainerin interfacePortletApplicationObject- Parameters:
container- the container
-
start
public void start() throws ExceptionDescription copied from interface:PortletApplicationObjectStarts the application only. It does not take care of starting its components.- Specified by:
startin interfacePortletApplicationObject- Throws:
Exception- any exception preventing the start
-
stop
public void stop()
Description copied from interface:PortletApplicationObjectStops the application only. It does not take care of stopping its components.- Specified by:
stopin interfacePortletApplicationObject
-
getPortletContext
public javax.portlet.PortletContext getPortletContext()
-
getListener
public <T> T getListener(Class<T> type)
-
getPortletContainers
public Set<PortletContainer> getPortletContainers()
Description copied from interface:PortletApplicationReturns the set of related portlet containers.- Specified by:
getPortletContainersin interfacePortletApplication- Returns:
- the portlet containers
-
getPortletContainer
public PortletContainer getPortletContainer(String name)
Description copied from interface:PortletApplicationReturns a specific container or null if it does not exist- Specified by:
getPortletContainerin interfacePortletApplication- Parameters:
name- the container id- Returns:
- the portlet container
-
getContext
public PortletApplicationContext getContext()
Description copied from interface:PortletApplicationObjectReturns the context related to this application.- Specified by:
getContextin interfacePortletApplication- Specified by:
getContextin interfacePortletApplicationObject- Returns:
- the context
-
-