public class PortletApplicationImpl extends Object implements PortletApplicationObject
| Modifier and Type | Field and Description |
|---|---|
protected PortletApplicationContext |
context
.
|
protected ContainerPortletApplicationInfo |
info
.
|
protected org.gatein.common.logging.Logger |
log
Logger.
|
protected PortletContextImpl |
portletContext
.
|
protected LinkedHashMap<String,PortletContainer> |
portlets
.
|
protected javax.portlet.PortletURLGenerationListener |
urlListener
.
|
| Constructor and Description |
|---|
PortletApplicationImpl(ContainerPortletApplicationInfo info) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPortletContainer(PortletContainer container)
Add a container.
|
void |
addPortletFilter(PortletFilter filter)
Add a filter.
|
PortletApplicationContext |
getContext()
Returns the context related to this application.
|
String |
getId()
Return the web app id.
|
ContainerPortletApplicationInfo |
getInfo() |
<T> T |
getListener(Class<T> type) |
PortletContainer |
getPortletContainer(String name)
Returns a specific container or null if it does not exist
|
Set<PortletContainer> |
getPortletContainers()
Returns the set of related portlet containers.
|
javax.portlet.PortletContext |
getPortletContext() |
void |
removePortletContainer(PortletContainer container)
Remove a container.
|
void |
removePortletFilter(PortletFilter filter)
Remove a filter.
|
void |
setContext(PortletApplicationContext context)
Set the context required by that application.
|
void |
start()
Starts the application only.
|
void |
stop()
Stops the application only.
|
String |
toString() |
protected final ContainerPortletApplicationInfo info
protected final org.gatein.common.logging.Logger log
protected PortletApplicationContext context
protected LinkedHashMap<String,PortletContainer> portlets
protected PortletContextImpl portletContext
protected javax.portlet.PortletURLGenerationListener urlListener
public PortletApplicationImpl(ContainerPortletApplicationInfo info)
info - the portlet application infopublic void setContext(PortletApplicationContext context)
PortletApplicationObjectsetContext in interface PortletApplicationObjectcontext - the contextpublic String getId()
PortletApplicationgetId in interface PortletApplicationpublic void addPortletFilter(PortletFilter filter)
PortletApplicationObjectaddPortletFilter in interface PortletApplicationObjectfilter - the filterpublic void removePortletFilter(PortletFilter filter)
PortletApplicationObjectremovePortletFilter in interface PortletApplicationObjectfilter - the filterpublic ContainerPortletApplicationInfo getInfo()
public void addPortletContainer(PortletContainer container)
PortletApplicationObjectaddPortletContainer in interface PortletApplicationObjectcontainer - the containerpublic void removePortletContainer(PortletContainer container)
PortletApplicationObjectremovePortletContainer in interface PortletApplicationObjectcontainer - the containerpublic void start()
throws Exception
PortletApplicationObjectstart in interface PortletApplicationObjectException - any exception preventing the startpublic void stop()
PortletApplicationObjectstop in interface PortletApplicationObjectpublic javax.portlet.PortletContext getPortletContext()
public <T> T getListener(Class<T> type)
public Set<PortletContainer> getPortletContainers()
PortletApplicationgetPortletContainers in interface PortletApplicationpublic PortletContainer getPortletContainer(String name)
PortletApplicationgetPortletContainer in interface PortletApplicationname - the container idpublic PortletApplicationContext getContext()
PortletApplicationObjectgetContext in interface PortletApplicationObjectgetContext in interface PortletApplicationCopyright © 2003-2016 GateIn. All Rights Reserved.