PortletRegistryService.
This store persit the PortletRegistry informations.
Method Summary |
private void |
fill()
|
PortletApplicationDefinitionList |
getPortletApplicationDefinitionList()
Returns a set containg all portlet application definitions |
PortletDefinition |
getPortletDefinition(ObjectID id)
Returns the portlet definition to the given object id |
void |
init(ServletConfig config,
Properties properties)
Initializes the service using the servlet context
and the service properties. |
private void |
load()
|
private void |
load(java.lang.String baseDir,
java.lang.String webModule)
|
void |
postInit()
This methods can be used to setup things after the services has
been initialized via init. |
private java.lang.String |
resolveURI(java.lang.String webModule)
Handles resolution of a web module's file system name to its
URI identifier. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fileSeparator
private static java.lang.String fileSeparator
INITIAL_TMP_PREFIX
private static final java.lang.String INITIAL_TMP_PREFIX
- The initial portion of the web module prefix used by JBoss.
- See Also:
- Constant Field Values
FULL_TMP_PREFIX_LEN
private static final int FULL_TMP_PREFIX_LEN
- The length of the full web module prefix used by JBoss (
INITIAL_TMP_PREFIX
plus numeric portion).
WAR_FILE_EXT
private static final java.lang.String WAR_FILE_EXT
- The file extension for web application archives (including the
leading dot).
- 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
mappingPortletXml
private Mapping mappingPortletXml
mappingWebXml
private Mapping mappingWebXml
servletContext
private ServletContext servletContext
baseWMDir
private java.lang.String baseWMDir
log
private Logger log
registry
protected PortletApplicationDefinitionListImpl registry
portletsKeyObjectId
protected java.util.Map portletsKeyObjectId
PortletDefinitionRegistryServiceFileImpl
public PortletDefinitionRegistryServiceFileImpl()
init
public void init(ServletConfig config,
Properties properties)
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 contextproperties
- the service properties
- Throws:
java.lang.Exception
- if the initialization fails
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
load
private void load()
throws java.lang.Exception
- Throws:
java.lang.Exception
resolveURI
private java.lang.String resolveURI(java.lang.String webModule)
- Handles resolution of a web module's file system name to its
URI identifier.
- Parameters:
webModule
- The file system name.
- Returns:
- The URI part.
load
private void load(java.lang.String baseDir,
java.lang.String webModule)
throws java.lang.Exception
- Throws:
java.lang.Exception
fill
private void fill()
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