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

java.lang.Object
  extended byorg.apache.pluto.portalImpl.services.Service
      extended byorg.apache.pluto.portalImpl.services.portletdefinitionregistry.PortletDefinitionRegistryService
          extended byorg.apache.pluto.portalImpl.services.portletdefinitionregistry.PortletDefinitionRegistryServiceFileImpl

public class PortletDefinitionRegistryServiceFileImpl
extends PortletDefinitionRegistryService

A simple XML Castor file based implementation of the PortletRegistryService.

This store persit the PortletRegistry informations.


Field Summary
static java.lang.String DEFAULT_MAPPING_PORTLETXML
           
static java.lang.String DEFAULT_MAPPING_WEBXML
           
protected  java.util.Map portletsKeyObjectId
           
protected  PortletApplicationDefinitionListImpl registry
           
 
Constructor Summary
PortletDefinitionRegistryServiceFileImpl()
           
 
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
 void init(javax.servlet.ServletConfig config, Properties properties)
          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_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

registry

protected PortletApplicationDefinitionListImpl registry

portletsKeyObjectId

protected java.util.Map portletsKeyObjectId
Constructor Detail

PortletDefinitionRegistryServiceFileImpl

public PortletDefinitionRegistryServiceFileImpl()
Method Detail

init

public void init(javax.servlet.ServletConfig config,
                 Properties properties)
          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
properties - the service properties
Throws:
java.lang.Exception - if the initialization fails

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

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-2006 . All Rights Reserved.