Home » Struts-1.3.10 » org.apache.struts » tiles » xmlDefinition » [javadoc | source]
org.apache.struts.tiles.xmlDefinition
abstract public class: FactorySet [javadoc | source]
java.lang.Object
   org.apache.struts.tiles.xmlDefinition.FactorySet

All Implemented Interfaces:
    ComponentDefinitionsFactory

Direct Known Subclasses:
    I18nFactorySet, CustomI18nFactorySet

Component Definitions factory. This factory contains several factories identified by a key. The getDefinition() method first looks for the factory key, retrieves or creates this factory and then calls its getDefinition().
Field Summary
protected  Map factories    Loaded factories 
Constructor:
 public FactorySet() 
Method from org.apache.struts.tiles.xmlDefinition.FactorySet Summary:
createFactory,   getDefaultFactory,   getDefinition,   getDefinitionsFactoryKey,   getFactory,   initFactory,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.struts.tiles.xmlDefinition.FactorySet Detail:
 abstract protected DefinitionsFactory createFactory(Object key,
    ServletRequest request,
    ServletContext servletContext) throws DefinitionsFactoryException
    Create a factory for specified key. This method is called by getFactory() when the requested factory doesn't already exist. Must return a factory, or a default one. Real implementation needs to provide this method.
 abstract protected DefinitionsFactory getDefaultFactory()
    Get default factory.
 public ComponentDefinition getDefinition(String name,
    ServletRequest request,
    ServletContext servletContext) throws NoSuchDefinitionException, DefinitionsFactoryException 
    Get a definition by its name.
 abstract protected Object getDefinitionsFactoryKey(String name,
    ServletRequest request,
    ServletContext servletContext)
    Extract key that will be used to get the sub factory.
 protected DefinitionsFactory getFactory(Object key,
    ServletRequest request,
    ServletContext servletContext) throws DefinitionsFactoryException 
    Get a factory by its key. If key is null, return defaultFactory. Search in loaded factories. If not found, create factory and store return value in loaded factories.
 abstract public  void initFactory(ServletContext servletContext,
    Map properties) throws DefinitionsFactoryException
    Init factory set.
 public String toString() 
    Return String representation.