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

org.apache.tiles.context
Class BasicAttributeContext

Package class diagram package BasicAttributeContext
java.lang.Object
  extended by org.apache.tiles.BasicAttributeContext
      extended by org.apache.tiles.context.BasicAttributeContext
All Implemented Interfaces:
Serializable, AttributeContext

Deprecated. Use BasicAttributeContext.

@Deprecated
public class BasicAttributeContext
extends BasicAttributeContext

Deprecated implementation for AttributeContext, maintained for compatibility reasons.

Version:
$Rev: 637434 $ $Date: 2008-03-15 16:48:38 +0100 (sab, 15 mar 2008) $
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.tiles.BasicAttributeContext
attributes, cascadedAttributes, preparer, templateAttribute
 
Constructor Summary
BasicAttributeContext()
          Deprecated. Constructor.
BasicAttributeContext(AttributeContext context)
          Deprecated. Copy constructor.
BasicAttributeContext(BasicAttributeContext context)
          Deprecated. Copy constructor.
BasicAttributeContext(Map<String,Attribute> attributes)
          Deprecated. Constructor.
 
Method Summary
static AttributeContext getContext(TilesRequestContext tilesContext)
          Deprecated. Use TilesContainer#getAttributeContext(Object...).
static Stack<AttributeContext> getContextStack(TilesRequestContext tilesContext)
          Deprecated. Use TilesContainer#getAttributeContext(Object...), TilesContainer#startContext(Object...) or TilesContainer#endContext(Object...).
static AttributeContext popContext(TilesRequestContext tilesContext)
          Deprecated. Use TilesContainer#endContext(Object...).
static void pushContext(AttributeContext context, TilesRequestContext tilesContext)
          Deprecated. Use TilesContainer#startContext(Object...).
 
Methods inherited from class org.apache.tiles.BasicAttributeContext
addAll, addMissing, clear, getAttribute, getAttributeNames, getCascadedAttribute, getCascadedAttributeNames, getLocalAttribute, getLocalAttributeNames, getPreparer, getTemplateAttribute, inherit, inherit, inheritCascadedAttributes, putAttribute, putAttribute, setPreparer, setTemplateAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicAttributeContext

public BasicAttributeContext()
Deprecated. 
Constructor.


BasicAttributeContext

public BasicAttributeContext(Map<String,Attribute> attributes)
Deprecated. 
Constructor. Create a context and set specified attributes.

Parameters:
attributes - Attributes to initialize context.

BasicAttributeContext

public BasicAttributeContext(AttributeContext context)
Deprecated. 
Copy constructor.

Parameters:
context - The constructor to copy.

BasicAttributeContext

public BasicAttributeContext(BasicAttributeContext context)
Deprecated. 
Copy constructor.

Parameters:
context - The constructor to copy.
Method Detail

getContext

@Deprecated
public static AttributeContext getContext(TilesRequestContext tilesContext)
Deprecated. Use TilesContainer#getAttributeContext(Object...).

Get attribute context from request.

Parameters:
tilesContext - current Tiles application context.
Returns:
BasicAttributeContext or null if context is not found.

getContextStack

@Deprecated
public static Stack<AttributeContext> getContextStack(TilesRequestContext tilesContext)
Deprecated. Use TilesContainer#getAttributeContext(Object...), TilesContainer#startContext(Object...) or TilesContainer#endContext(Object...).

Returns the context stack.

Parameters:
tilesContext - The Tiles context object to use.
Returns:
The needed stack of contexts.

pushContext

@Deprecated
public static void pushContext(AttributeContext context,
                                          TilesRequestContext tilesContext)
Deprecated. Use TilesContainer#startContext(Object...).

Pushes a context object in the stack.

Parameters:
context - The context to push.
tilesContext - The Tiles context object to use.

popContext

@Deprecated
public static AttributeContext popContext(TilesRequestContext tilesContext)
Deprecated. Use TilesContainer#endContext(Object...).

Pops a context object out of the stack.

Parameters:
tilesContext - The Tiles context object to use.
Returns:
The popped context object.


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