com.macvu.tiles.xmlDefinition
Class XmlCacheDefinition

java.lang.Object
  extended by org.apache.struts.tiles.ComponentDefinition
      extended by com.macvu.tiles.CacheComponentDefinition
          extended by com.macvu.tiles.xmlDefinition.XmlCacheDefinition
All Implemented Interfaces:
java.io.Serializable

public class XmlCacheDefinition
extends CacheComponentDefinition

See Also:
Serialized Form

Field Summary
protected static org.apache.commons.logging.Log log
          Commons Logging instance.
 
Fields inherited from class com.macvu.tiles.CacheComponentDefinition
inherit, processType
 
Fields inherited from class org.apache.struts.tiles.ComponentDefinition
ACTION, attributes, controller, CONTROLLER, controllerType, name, path, role, URL
 
Constructor Summary
XmlCacheDefinition()
          Constructor.
 
Method Summary
 void addAttribute(org.apache.struts.tiles.xmlDefinition.XmlAttribute attribute)
          Add an attribute to this component.
 void addCacheInformation(XmlCacheInformation info)
           
 void overload(XmlCacheDefinition child)
          Overload this definition with passed child.
 void resolveInheritance(XmlCacheDefinitionSet definitionsSet)
          Resolve inheritance.
 void setIsVisited(boolean isVisited)
          Set isVisited.
 
Methods inherited from class com.macvu.tiles.CacheComponentDefinition
getCacheInformation, getExtends, getProcessType, isExtending, setCacheInformation, setExtends, setProcessType, toString
 
Methods inherited from class org.apache.struts.tiles.ComponentDefinition
createController, createControllerFromClassname, getAttribute, getAttributes, getController, getControllerInstance, getControllerType, getName, getOrCreateController, getPage, getPath, getRole, getTemplate, put, put, put, put, putAttribute, setController, setControllerClass, setControllerInstance, setControllerType, setControllerUrl, setName, setPage, setPath, setRole, setTemplate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

protected static org.apache.commons.logging.Log log
Commons Logging instance.

Constructor Detail

XmlCacheDefinition

public XmlCacheDefinition()
Constructor.

Method Detail

addAttribute

public void addAttribute(org.apache.struts.tiles.xmlDefinition.XmlAttribute attribute)
Add an attribute to this component.

Parameters:
attribute - Attribute to add.

addCacheInformation

public void addCacheInformation(XmlCacheInformation info)

setIsVisited

public void setIsVisited(boolean isVisited)
Set isVisited.


resolveInheritance

public void resolveInheritance(XmlCacheDefinitionSet definitionsSet)
                        throws org.apache.struts.tiles.NoSuchDefinitionException
Resolve inheritance. First, resolve parent's inheritance, then set path to the parent's path. Also copy attributes setted in parent, and not set in child If instance doesn't extend anything, do nothing.

Throws:
org.apache.struts.tiles.NoSuchDefinitionException - If an inheritance can not be solved.

overload

public void overload(XmlCacheDefinition child)
Overload this definition with passed child. All attributes from child are copied to this definition. Previous attributes with same name are disguarded. Special attribute 'path','role' and 'extends' are overloaded if defined in child.

Parameters:
child - Child used to overload this definition.


Copyright © 2005 MacVu group. All Rights Reserved.