org.apache.pluto.internal
Class PortletDescriptorRegistry

java.lang.Object
  extended by org.apache.pluto.internal.PortletDescriptorRegistry

public class PortletDescriptorRegistry
extends java.lang.Object

Simple caching mechanism used to manage portlet descriptors. This mechanism takes special considerations to make sure that the cache is invalidated for any ServletContext that is destroyed, thus allowing for a the context to be redeployed. NOTE: This should only be used internally. Do not access it from embedding portals, instead, utilize the PortletRegistryService.

Since:
Nov 3, 2004
Version:
1.0

Method Summary
 PortletAppDD getPortletAppDD(javax.servlet.ServletContext servletContext)
          Retrieve the Portlet Application Deployment Descriptor for the given servlet context.
static PortletDescriptorRegistry getRegistry()
          Returns the singleton registry instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getRegistry

public static PortletDescriptorRegistry getRegistry()
Returns the singleton registry instance.

Returns:
the singleton registry instance.

getPortletAppDD

public PortletAppDD getPortletAppDD(javax.servlet.ServletContext servletContext)
                             throws PortletContainerException
Retrieve the Portlet Application Deployment Descriptor for the given servlet context. Create it if it does not allready exist.

Parameters:
servletContext - the servlet context.
Returns:
The portlet application deployment descriptor.
Throws:
PortletContainerException - if the descriptor can not be found or parsed


Copyright © 2003-2010 Apache Software Foundation. All Rights Reserved.