|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PortletRegistryService
Interface defining the services used by the container to access portlet application descriptors. The registry acts as both internally as descriptor cache and publically as a mechanism for notifying the container of new applications.
Method Summary | |
---|---|
void |
addPortletRegistryListener(PortletRegistryListener listener)
Add a listener which will recieve notifications of newly registered applications. |
PortletAppDD |
getPortletApplicationDescriptor(java.lang.String name)
Retrieve the portlet descriptor for the specified portlet application. |
PortletConfig |
getPortletConfig(java.lang.String applicationId,
java.lang.String portletName)
Retrieve the portlet configuration for the specified portlet |
PortletContext |
getPortletContext(java.lang.String applicationId)
Retrieve the PortletContext for the specified applicationId |
PortletDD |
getPortletDescriptor(java.lang.String applicationId,
java.lang.String portletName)
Retreive the portlet descriptor for the given portlet. |
java.util.Iterator |
getRegisteredPortletApplicationIds()
Retrieve the ids of all registered applications. |
java.util.Iterator |
getRegisteredPortletApplications()
Retrieve all registered applications. |
void |
removePortletRegistryListener(PortletRegistryListener listener)
Remove a previously registered listener. |
Method Detail |
---|
java.util.Iterator getRegisteredPortletApplications()
java.util.Iterator getRegisteredPortletApplicationIds()
PortletAppDD getPortletApplicationDescriptor(java.lang.String name) throws PortletContainerException
name
- the name of the portlet application.
PortletContainerException
- if the descriptor
can not be found or if the portlet.xml can not be parsed.PortletContext getPortletContext(java.lang.String applicationId) throws PortletContainerException
applicationId
- context identifier
PortletContainerException
- if internal error occursPortletDD getPortletDescriptor(java.lang.String applicationId, java.lang.String portletName) throws PortletContainerException
applicationId
- context identifierportletName
- portlet name
PortletContainerException
- if unexpected errorPortletConfig getPortletConfig(java.lang.String applicationId, java.lang.String portletName) throws PortletContainerException
applicationId
- context identifierportletName
- portlet name
PortletContainerException
- if internal error occursvoid addPortletRegistryListener(PortletRegistryListener listener)
listener
- the listener to addvoid removePortletRegistryListener(PortletRegistryListener listener)
listener
- the listener to remove
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |