Save This Page
Home » struts-1.3.9-src » org.apache.struts » tiles » definition » [javadoc | source]
org.apache.struts.tiles.definition
public class: ComponentDefinitionsFactoryWrapper [javadoc | source]
java.lang.Object
   org.apache.struts.tiles.definition.ComponentDefinitionsFactoryWrapper

All Implemented Interfaces:
    DefinitionsFactory

Wrapper from new definition factory interface to old interface. This class provides mapping from the old interface's life cycle to the new life cycle.
Constructor:
 public ComponentDefinitionsFactoryWrapper() 
 public ComponentDefinitionsFactoryWrapper(ComponentDefinitionsFactory factory) 
    Constructor. Create new wrapper for specified factory.
    Parameters:
    factory - The factory to create a wrapper for.
Method from org.apache.struts.tiles.definition.ComponentDefinitionsFactoryWrapper Summary:
createConfigMap,   createFactoryInstance,   destroy,   getConfig,   getDefinition,   getInternalFactory,   init,   setConfig,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.struts.tiles.definition.ComponentDefinitionsFactoryWrapper Detail:
 public static Map createConfigMap(DefinitionsFactoryConfig config) 
    Create map of configuration attributes from configuration object. Mapping is done between old names and new names.
 protected ComponentDefinitionsFactory createFactoryInstance(String classname) throws DefinitionsFactoryException 
 public  void destroy() 
    Do nothing because old life cycle has no equivalent.
 public DefinitionsFactoryConfig getConfig() 
    Get underlying factory configuration.
 public ComponentDefinition getDefinition(String name,
    ServletRequest request,
    ServletContext servletContext) throws NoSuchDefinitionException, DefinitionsFactoryException 
    Get requested definition.
 public ComponentDefinitionsFactory getInternalFactory() 
    Get internal factory.
 public  void init(DefinitionsFactoryConfig config,
    ServletContext servletContext) throws DefinitionsFactoryException 
    Call underlying factory init method.
 public  void setConfig(DefinitionsFactoryConfig config,
    ServletContext servletContext) throws DefinitionsFactoryException 
    Set underlying factory configuration.
 public String toString() 
    Return String representation. Calls toString() on underlying factory.