|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pluto.core.PortletContextManager
public class PortletContextManager
Manager used to cache the portlet configurations which have been previously parsed.
Method Summary | |
---|---|
void |
addPortletRegistryListener(PortletRegistryListener listener)
Add a listener which will recieve notifications of newly registered applications. |
protected static java.lang.String |
computeContextPath(javax.servlet.ServletContext context)
|
protected static java.lang.String |
getContextPath(javax.servlet.ServletContext context)
|
static PortletContextManager |
getManager()
Returns the singleton manager instance. |
org.apache.pluto.descriptors.portlet.PortletAppDD |
getPortletApplicationDescriptor(java.lang.String applicationId)
Retrieve the portlet descriptor for the specified portlet application. |
static javax.servlet.ServletContext |
getPortletContext(javax.servlet.ServletContext portalContext,
java.lang.String portletContextPath)
|
javax.portlet.PortletContext |
getPortletContext(java.lang.String applicationId)
Retrieve the PortletContext for the specified applicationId |
java.util.Iterator |
getRegisteredPortletApplicationIds()
Retrieve the ids of all registered applications. |
java.util.Iterator |
getRegisteredPortletApplications()
Retrieve an iterator of all PortletContext instances which exist within this application. |
InternalPortletContext |
register(javax.servlet.ServletContext servletContext)
Retrieves the PortletContext associated with the given ServletContext. |
void |
remove(InternalPortletContext context)
|
void |
removePortletRegistryListener(PortletRegistryListener listener)
Remove a previously registered listener. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static PortletContextManager getManager()
public InternalPortletContext register(javax.servlet.ServletContext servletContext) throws PortletContainerException
servletContext
- the servlet context.
PortletContainerException
public void remove(InternalPortletContext context)
public java.util.Iterator getRegisteredPortletApplicationIds()
PortletRegistryService
getRegisteredPortletApplicationIds
in interface PortletRegistryService
public java.util.Iterator getRegisteredPortletApplications()
getRegisteredPortletApplications
in interface PortletRegistryService
public javax.portlet.PortletContext getPortletContext(java.lang.String applicationId) throws PortletContainerException
PortletRegistryService
getPortletContext
in interface PortletRegistryService
PortletContainerException
public org.apache.pluto.descriptors.portlet.PortletAppDD getPortletApplicationDescriptor(java.lang.String applicationId) throws PortletContainerException
PortletRegistryService
getPortletApplicationDescriptor
in interface PortletRegistryService
applicationId
- the name of the portlet application.
PortletContainerException
- if the descriptor
can not be found or if the portlet.xml can not be parsed.public void addPortletRegistryListener(PortletRegistryListener listener)
PortletRegistryService
addPortletRegistryListener
in interface PortletRegistryService
listener
- the listener to addpublic void removePortletRegistryListener(PortletRegistryListener listener)
PortletRegistryService
removePortletRegistryListener
in interface PortletRegistryService
listener
- the listener to removepublic static javax.servlet.ServletContext getPortletContext(javax.servlet.ServletContext portalContext, java.lang.String portletContextPath)
protected static java.lang.String getContextPath(javax.servlet.ServletContext context)
protected static java.lang.String computeContextPath(javax.servlet.ServletContext context)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |