| java.lang.Object org.apache.struts.tiles.definition.ReloadableDefinitionsFactory
ReloadableDefinitionsFactory | public class ReloadableDefinitionsFactory implements ComponentDefinitionsFactory(Code) | | A reloadable factory.
This factory is the main entrance to any factory implementation. It takes in
charge real implementation instance, and allows reloading by creating a new
instance.
since: Struts 1.1 version: $Rev: 471754 $ $Date: 2006-11-06 08:55:09 -0600 (Mon, 06 Nov 2006) $ |
Inner Class :class ServletPropertiesMap extends HashMap | |
DEFINITIONS_FACTORY_CLASSNAME | final public static String DEFINITIONS_FACTORY_CLASSNAME(Code) | | Name of init property carrying factory class name.
|
properties | protected Map properties(Code) | | Initialization parameters.
|
createDefaultFactory | public ComponentDefinitionsFactory createDefaultFactory(ServletContext servletContext, Map properties) throws DefinitionsFactoryException(Code) | | Create default Definition factory.
Factory must have a constructor taking ServletContext and Map as parameter.
In this implementation, default factory is of class I18nFactorySet
Parameters: servletContext - Servlet Context passed to newly created factory. Parameters: properties - Map of name/property passed to newly created factory. newly created factory. throws: DefinitionsFactoryException - If an error occur while initializing factory |
createFactory | public ComponentDefinitionsFactory createFactory(ServletContext servletContext, Map properties) throws DefinitionsFactoryException(Code) | | Create Definition factory.
Convenience method. ServletConfig is wrapped into a Map allowing retrieval
of init parameters. Factory classname is also retrieved, as well as debug level.
Finally, approriate createDefinitionsFactory() is called.
Parameters: servletContext - Servlet Context passed to newly created factory. Parameters: properties - Map containing all properties. |
createFactoryFromClassname | public ComponentDefinitionsFactory createFactoryFromClassname(ServletContext servletContext, Map properties, String classname) throws DefinitionsFactoryException(Code) | | Create Definition factory from provided classname.
If a factory class name is provided, a factory of this class is created. Otherwise,
a default factory is created.
Factory must have a constructor taking ServletContext and Map as parameter.
Parameters: classname - Class name of the factory to create. Parameters: servletContext - Servlet Context passed to newly created factory. Parameters: properties - Map of name/property passed to newly created factory. newly created factory. throws: DefinitionsFactoryException - If an error occur while initializing factory |
initFactory | public void initFactory(ServletContext servletContext, Map properties) throws DefinitionsFactoryException(Code) | | Init factory.
This method is required by interface ComponentDefinitionsFactory. It is
not used in this implementation, as it manages itself the underlying creation
and initialization.
Parameters: servletContext - Servlet Context passed to newly created factory. Parameters: properties - Map of name/property passed to newly created factory.Map can contain more properties than requested. throws: DefinitionsFactoryException - An error occur during initialization. |
toString | public String toString()(Code) | | Return String representation.
String representation. |
|
|