org.apache.pluto.portalImpl.services.portletdefinitionregistry
Class PortletDefinitionRegistryServiceContextImpl

java.lang.Object
  extended by org.apache.pluto.portalImpl.services.Service
      extended by org.apache.pluto.portalImpl.services.portletdefinitionregistry.PortletDefinitionRegistryService
          extended by 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$

Field Summary
static java.lang.String DEFAULT_CONTEXTS
           
static java.lang.String DEFAULT_MAPPING_PORTLETXML
           
static java.lang.String DEFAULT_MAPPING_WEBXML
           
 
Constructor Summary
PortletDefinitionRegistryServiceContextImpl()
           
 
Method Summary
 org.apache.pluto.om.portlet.PortletApplicationDefinitionList getPortletApplicationDefinitionList()
          Returns a set containg all portlet application definitions
 org.apache.pluto.om.portlet.PortletDefinition getPortletDefinition(org.apache.pluto.om.common.ObjectID id)
          Returns the portlet definition to the given object id
protected  void init(javax.servlet.ServletConfig config, Properties props)
          Initializes the service using the servlet configuration and the service properties.
 void postInit()
          This methods can be used to setup things after the services has been initialized via init.
 
Methods inherited from class org.apache.pluto.portalImpl.services.Service
destroy, destroy, init, init, postInit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

PortletDefinitionRegistryServiceContextImpl

public PortletDefinitionRegistryServiceContextImpl()
Method Detail

getPortletApplicationDefinitionList

public org.apache.pluto.om.portlet.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 org.apache.pluto.om.portlet.PortletDefinition getPortletDefinition(org.apache.pluto.om.common.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(javax.servlet.ServletConfig config,
                    Properties props)
             throws java.lang.Exception
Description copied from class: Service
Initializes the service using the servlet configuration and the service properties.

Overrides:
init in class Service
Parameters:
config - the servlet configuration
props - the service properties
Throws:
java.lang.Exception - if the initialization fails

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


Copyright © 2003-2009 . All Rights Reserved.