Package org.apache.struts.tiles
Interface ComponentDefinitionsFactory
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
FactorySet
,I18nFactorySet
,ReloadableDefinitionsFactory
Deprecated.
Use DefinitionsFactory instead.
Component repository interface.
This interface allows to retrieve an definition by its name, independently of the
factory implementation.
Implementation must be Serializable, in order to be compliant with web Container
having this constraint (Weblogic 6.x).
-
Method Summary
Modifier and TypeMethodDescriptiongetDefinition
(String name, ServletRequest request, ServletContext servletContext) Deprecated.Get a definition by its name.void
initFactory
(ServletContext servletContext, Map<String, Object> properties) Deprecated.Init factory.
-
Method Details
-
getDefinition
ComponentDefinition getDefinition(String name, ServletRequest request, ServletContext servletContext) throws NoSuchDefinitionException, DefinitionsFactoryException Deprecated.Get a definition by its name.- Parameters:
name
- Name of requested definition.request
- Current servelet requestservletContext
- current servlet context- Throws:
DefinitionsFactoryException
- An error occur while getting definition.NoSuchDefinitionException
- No definition found for specified name Implementation can throw more accurate exception as a subclass of this exception
-
initFactory
void initFactory(ServletContext servletContext, Map<String, Object> properties) throws DefinitionsFactoryExceptionDeprecated.Init factory. This method is called exactly once immediately after factory creation in case of internal creation (by DefinitionUtil).- Parameters:
servletContext
- Servlet Context passed to newly created factory.properties
- Map of name/property passed to newly created factory. Map can contains more properties than requested.- Throws:
DefinitionsFactoryException
- An error occur during initialization.
-