This project has retired. For details please refer to its Attic page.
ChainedTilesContextFactory (Tiles 2 2.1.4 API)

org.apache.tiles.context
Class ChainedTilesContextFactory

Package class diagram package ChainedTilesContextFactory
java.lang.Object
  extended by org.apache.tiles.context.ChainedTilesContextFactory
All Implemented Interfaces:
TilesContextFactory, TilesRequestContextFactory, Initializable
Direct Known Subclasses:
EnhancedContextFactory

Deprecated. Use ChainedTilesApplicationContextFactory and ChainedTilesRequestContextFactory.

public class ChainedTilesContextFactory
extends Object
implements TilesContextFactory

Default implementation for TilesContextFactory, that creates a chain of sub-factories, trying each one until it returns a not-null value.

Version:
$Rev: 774104 $ $Date: 2009-05-12 23:44:39 +0200 (mar, 12 mag 2009) $

Field Summary
static String[] DEFAULT_FACTORY_CLASS_NAMES
          Deprecated. Simply do not use it.
static String FACTORY_CLASS_NAMES
          Deprecated. Simply do not use it.
 
Constructor Summary
ChainedTilesContextFactory()
          Deprecated.  
 
Method Summary
 TilesApplicationContext createApplicationContext(Object context)
          Deprecated. Create a TilesApplicationContext for the given context.
 TilesRequestContext createRequestContext(TilesApplicationContext context, Object... requestItems)
          Deprecated. Create a TilesRequestContext for the given context, request, and response.
 void init(Map<String,String> configParameters)
          Deprecated. Initializes the object.
 void setFactories(List<TilesContextFactory> factories)
          Deprecated. Simply do not use it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FACTORY_CLASS_NAMES

@Deprecated
public static final String FACTORY_CLASS_NAMES
Deprecated. Simply do not use it.
Factory class names initialization parameter to use.

See Also:
Constant Field Values

DEFAULT_FACTORY_CLASS_NAMES

@Deprecated
public static final String[] DEFAULT_FACTORY_CLASS_NAMES
Deprecated. Simply do not use it.
The default class names to instantiate that compose the chain..

Constructor Detail

ChainedTilesContextFactory

public ChainedTilesContextFactory()
Deprecated. 
Method Detail

setFactories

@Deprecated
public void setFactories(List<TilesContextFactory> factories)
Deprecated. Simply do not use it.

Sets the factories to be used.

Parameters:
factories - The factories to be used.

init

public void init(Map<String,String> configParameters)
Deprecated. 
Initializes the object.

Specified by:
init in interface Initializable
Parameters:
configParameters - The map of parameters.

createApplicationContext

public TilesApplicationContext createApplicationContext(Object context)
Deprecated. 
Create a TilesApplicationContext for the given context.

Specified by:
createApplicationContext in interface TilesContextFactory
Parameters:
context - The (application) context to use.
Returns:
TilesApplicationContext The Tiles application context.

createRequestContext

public TilesRequestContext createRequestContext(TilesApplicationContext context,
                                                Object... requestItems)
Deprecated. 
Create a TilesRequestContext for the given context, request, and response.

Specified by:
createRequestContext in interface TilesRequestContextFactory
Parameters:
context - the associated TilesApplicationContext
requestItems - the associated request items, typically a request and a response.
Returns:
TilesRequestContext


Copyright © 2001-2009 Apache Software Foundation. All Rights Reserved.