Save This Page
Home » tiles-2.0.6-src » org.apache » tiles » impl » [javadoc | source]
org.apache.tiles.impl
public class: BasicTilesContainer [javadoc | source]
java.lang.Object
   org.apache.tiles.impl.BasicTilesContainer

All Implemented Interfaces:
    TilesContainer

Direct Known Subclasses:
    KeyedDefinitionsFactoryTilesContainer, CachingKeyedDefinitionsFactoryTilesContainer, CachingTilesContainer

Basic implementation of the tiles container interface. In most cases, this container will be customized by injecting customized services, not necessarily by override the container
Field Summary
public static final  String DEFINITIONS_CONFIG    Constant representing the configuration parameter used to define the tiles definition resources. 
Method from org.apache.tiles.impl.BasicTilesContainer Summary:
checkInit,   endContext,   getApplicationContext,   getAttributeContext,   getContext,   getContextFactory,   getContextStack,   getDefinition,   getDefinitionsFactory,   getPreparerFactory,   getResourceNames,   getResourceString,   getResourceString,   init,   initializeDefinitionsFactory,   isValidDefinition,   popContext,   prepare,   pushContext,   render,   render,   setApplicationContext,   setContextFactory,   setDefinitionsFactory,   setPreparerFactory,   startContext
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.tiles.impl.BasicTilesContainer Detail:
 protected  void checkInit() 
    Determine whether or not the container has been initialized. Utility method used for methods which can not be invoked after the container has been started.
 public  void endContext(Object requestItems) 
    {@inheritDoc}
 public TilesApplicationContext getApplicationContext() 
    Returns the Tiles application context used by this container.
 public AttributeContext getAttributeContext(Object requestItems) 
    {@inheritDoc}
 protected AttributeContext getContext(TilesRequestContext tilesContext) 
    Get attribute context from request.
 public TilesContextFactory getContextFactory() 
    Returns the context factory.
 protected Stack getContextStack(TilesRequestContext tilesContext) 
    Returns the context stack.
 protected Definition getDefinition(String definitionName,
    TilesRequestContext request) throws DefinitionsFactoryException 
    Returns a definition specifying its name.
 public DefinitionsFactory getDefinitionsFactory() 
    Returns the definitions factory.
 public PreparerFactory getPreparerFactory() 
    Returns the preparer factory used by this container.
 protected List getResourceNames(String resourceString) 
    Parse the resourceString into a list of resource paths which can be loaded by the application context.
 protected String getResourceString() 
 protected String getResourceString(Map parms) 
 public  void init(Map initParameters) throws TilesException 
    Initialize the Container with the given configuration.
 protected  void initializeDefinitionsFactory(DefinitionsFactory definitionsFactory,
    String resourceString,
    Map initParameters) throws TilesException 
    Initializes a definitions factory.
 public boolean isValidDefinition(String definitionName,
    Object requestItems) 
    {@inheritDoc}
 protected AttributeContext popContext(TilesRequestContext tilesContext) 
    Pops a context object out of the stack.
 public  void prepare(String preparer,
    Object requestItems) throws TilesException 
    {@inheritDoc}
 protected  void pushContext(AttributeContext context,
    TilesRequestContext tilesContext) 
    Pushes a context object in the stack.
 public  void render(String definitionName,
    Object requestItems) throws TilesException 
    {@inheritDoc}
 public  void render(Attribute attr,
    Writer writer,
    Object requestItems) throws IOException, TilesException 
    {@inheritDoc}
 public  void setApplicationContext(TilesApplicationContext context) 
    Sets the Tiles application context to use.
 public  void setContextFactory(TilesContextFactory contextFactory) 
    Sets the context factory.
 public  void setDefinitionsFactory(DefinitionsFactory definitionsFactory) 
    Set the definitions factory. This method first ensures that the container has not yet been initialized.
 public  void setPreparerFactory(PreparerFactory preparerFactory) 
    Set the preparerInstance factory. This method first ensures that the container has not yet been initialized.
 public AttributeContext startContext(Object requestItems) 
    {@inheritDoc}