|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.portal.portlet.impl.jsr168.PortletApplicationImpl
public class PortletApplicationImpl
| Field Summary | |
|---|---|
protected PortletApplicationContext |
context
. |
protected ContainerPortletApplicationInfo |
info
. |
protected org.apache.log4j.Logger |
log
Logger. |
protected PortletContextImpl |
portletContext
. |
protected java.util.LinkedHashMap<java.lang.String,PortletContainer> |
portlets
. |
protected javax.portlet.PortletURLGenerationListener |
urlListener
. |
| Constructor Summary | |
|---|---|
PortletApplicationImpl(ContainerPortletApplicationInfo info)
|
|
| Method Summary | ||
|---|---|---|
void |
addPortletContainer(PortletContainer container)
Add a container. |
|
void |
addPortletFilter(PortletFilter filter)
Add a filter. |
|
PortletApplicationContext |
getContext()
Returns the context related to this application. |
|
java.lang.String |
getId()
Return the web app id. |
|
ContainerPortletApplicationInfo |
getInfo()
|
|
|
getListener(java.lang.Class<T> type)
|
|
PortletContainer |
getPortletContainer(java.lang.String name)
Returns a specific container or null if it does not exist |
|
java.util.Set<PortletContainer> |
getPortletContainers()
Returns the set of related portlet containers. |
|
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. |
|
java.lang.String |
toString()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final ContainerPortletApplicationInfo info
protected final org.apache.log4j.Logger log
protected PortletApplicationContext context
protected java.util.LinkedHashMap<java.lang.String,PortletContainer> portlets
protected PortletContextImpl portletContext
protected javax.portlet.PortletURLGenerationListener urlListener
| Constructor Detail |
|---|
public PortletApplicationImpl(ContainerPortletApplicationInfo info)
info - the portlet application info| Method Detail |
|---|
public void setContext(PortletApplicationContext context)
PortletApplicationObject
setContext in interface PortletApplicationObjectcontext - the contextpublic java.lang.String getId()
PortletApplication
getId in interface PortletApplicationpublic void addPortletFilter(PortletFilter filter)
PortletApplicationObject
addPortletFilter in interface PortletApplicationObjectfilter - the filterpublic void removePortletFilter(PortletFilter filter)
PortletApplicationObject
removePortletFilter in interface PortletApplicationObjectfilter - the filterpublic ContainerPortletApplicationInfo getInfo()
public void addPortletContainer(PortletContainer container)
PortletApplicationObject
addPortletContainer in interface PortletApplicationObjectcontainer - the containerpublic void removePortletContainer(PortletContainer container)
PortletApplicationObject
removePortletContainer in interface PortletApplicationObjectcontainer - the container
public void start()
throws java.lang.Exception
PortletApplicationObject
start in interface PortletApplicationObjectjava.lang.Exception - any exception preventing the startpublic void stop()
PortletApplicationObject
stop in interface PortletApplicationObjectpublic PortletContext getPortletContext()
public <T> T getListener(java.lang.Class<T> type)
public java.util.Set<PortletContainer> getPortletContainers()
PortletApplication
getPortletContainers in interface PortletApplicationpublic PortletContainer getPortletContainer(java.lang.String name)
PortletApplication
getPortletContainer in interface PortletApplicationname - the container id
public PortletApplicationContext getContext()
PortletApplicationObject
getContext in interface PortletApplicationObjectgetContext in interface PortletApplicationpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||