org.apache.pluto.portalImpl.services.portletdefinitionregistry
Class PortletDefinitionRegistryServiceContextImpl
java.lang.Object
org.apache.pluto.portalImpl.services.Service
org.apache.pluto.portalImpl.services.portletdefinitionregistry.PortletDefinitionRegistryService
org.apache.pluto.portalImpl.services.portletdefinitionregistry.PortletDefinitionRegistryServiceContextImpl
public class PortletDefinitionRegistryServiceContextImpl
- extends PortletDefinitionRegistryService
A version of the registry service that obtains data from a ServletContext
rather than trying to scan for portlet applications.
- Version:
- $Rev$ $Date$
Method Summary |
PortletApplicationDefinitionList |
getPortletApplicationDefinitionList()
Returns a set containg all portlet application definitions |
PortletDefinition |
getPortletDefinition(ObjectID id)
Returns the portlet definition to the given object id |
protected void |
init(ServletConfig config,
Properties props)
Initializes the service using the servlet context
and the service properties. |
private PortletApplicationDefinition |
loadApplicationDefinition(ServletContext context,
java.lang.String path)
|
private java.util.List |
loadDefinitionList(ServletContext context,
java.lang.String path)
|
private Mapping |
loadMapping(ServletContext context,
java.lang.String path)
|
void |
postInit()
This methods can be used to setup things after the services has
been initialized via init. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_CONTEXTS
public static final java.lang.String DEFAULT_CONTEXTS
- See Also:
- Constant Field Values
DEFAULT_MAPPING_PORTLETXML
public static final java.lang.String DEFAULT_MAPPING_PORTLETXML
- See Also:
- Constant Field Values
DEFAULT_MAPPING_WEBXML
public static final java.lang.String DEFAULT_MAPPING_WEBXML
- See Also:
- Constant Field Values
CONFIG_MAPPING_PORTLETXML
private static final java.lang.String CONFIG_MAPPING_PORTLETXML
- See Also:
- Constant Field Values
CONFIG_MAPPING_WEBXML
private static final java.lang.String CONFIG_MAPPING_WEBXML
- See Also:
- Constant Field Values
webXmlMapping
private static Mapping webXmlMapping
portletXmlMapping
private static Mapping portletXmlMapping
registry
private static PortletApplicationDefinitionListImpl registry
definitions
private static java.util.Map definitions
PortletDefinitionRegistryServiceContextImpl
public PortletDefinitionRegistryServiceContextImpl()
getPortletApplicationDefinitionList
public PortletApplicationDefinitionList getPortletApplicationDefinitionList()
- Description copied from class:
PortletDefinitionRegistryService
- Returns a set containg all portlet application definitions
- Specified by:
getPortletApplicationDefinitionList
in class PortletDefinitionRegistryService
- Returns:
- the portlet application definition set
getPortletDefinition
public PortletDefinition getPortletDefinition(ObjectID id)
- Description copied from class:
PortletDefinitionRegistryService
- Returns the portlet definition to the given object id
- Specified by:
getPortletDefinition
in class PortletDefinitionRegistryService
- Returns:
- the portlet definition
init
protected void init(ServletConfig config,
Properties props)
throws java.lang.Exception
- Description copied from class:
Service
- Initializes the service using the servlet context
and the service properties.
- Overrides:
init
in class Service
- Parameters:
config
- the servlet contextprops
- the service properties
- Throws:
java.lang.Exception
- if the initialization fails
loadMapping
private Mapping loadMapping(ServletContext context,
java.lang.String path)
throws UnavailableException
- Throws:
UnavailableException
loadDefinitionList
private java.util.List loadDefinitionList(ServletContext context,
java.lang.String path)
throws UnavailableException
- Throws:
UnavailableException
loadApplicationDefinition
private PortletApplicationDefinition loadApplicationDefinition(ServletContext context,
java.lang.String path)
throws UnavailableException
- Throws:
UnavailableException
postInit
public void postInit()
throws java.lang.Exception
- Description copied from class:
Service
- This methods can be used to setup things after the services has
been initialized via init.
- Overrides:
postInit
in class Service
- Throws:
java.lang.Exception
- if the postInit fails for any reason