|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javawebparts.filter.DependencyConfig
This class is a bean that represents a <dependency> element in the config file for the DependencyFilter.
Field Summary | |
private java.lang.String |
className
Name of the class of the configured dependency. |
private java.lang.String |
createForPaths
This is the collection of paths for which the dependency will be created. |
private java.util.ArrayList |
createForPathsAL
This is the collection of paths for which the dependency will be created. |
private java.util.ArrayList |
initArrays
List of Array properties that will be configured on the object. |
private java.util.ArrayList |
initArraysTemp
List of Array properties that will be configured on the object. |
private java.lang.String |
initClass
Name of the class that will be used to initialize the object upon creation. |
private java.util.ArrayList |
initLists
List of List properties that will be configured on the object. |
private java.util.ArrayList |
initListsTemp
List of List properties that will be configured on the object. |
private java.util.ArrayList |
initMaps
List of Map properties that will be configured on the object. |
private java.util.ArrayList |
initMapsTemp
List of Map properties that will be configured on the object. |
private java.lang.String |
initMethod
Method of the initClass that will be called to initialize the object. |
private java.util.ArrayList |
initProps
List of simple properties that will be configured on the object. |
private static org.apache.commons.logging.Log |
log
Log instance. |
private long |
maxAge
The maximum age in seconds for a session-scoped dependency. |
private java.util.ArrayList |
methodCalls
List of methods that will be called on the object after creation. |
private java.lang.String |
name
Name the configured dependency will be under. |
private java.lang.String |
scope
Scope the configured dependency will be under (request or session). |
Constructor Summary | |
DependencyConfig()
|
Method Summary | |
void |
addInitArray(java.lang.String inName)
Used to add a new Array property initialization to the collection. |
void |
addInitArrayTemp(java.lang.String inValue)
Used to add a new Array property initialization to the collection. |
void |
addInitList(java.lang.String inMethod,
java.lang.String inName)
Used to add a new List property initialization to the collection. |
void |
addInitListTemp(java.lang.String inValue)
Used to add a new List property initialization to the collection. |
void |
addInitMap(java.lang.String inMethod,
java.lang.String inName)
Used to add a new Map property initialization to the collection. |
void |
addInitMapTemp(java.lang.String inKey,
java.lang.String inValue)
Used to add a new Map property initialization to the collection. |
void |
addInitProp(java.lang.String inName,
java.lang.String inValue)
Used to add a new simple property initialization to the collection. |
void |
addMethodCall(java.lang.String inName,
java.lang.String inArguments)
Used to add a new method call to the collection. |
java.lang.String |
getClassName()
Class Name accessor. |
java.lang.String |
getCreateForPaths()
createForPaths accessor. |
java.util.ArrayList |
getCreateForPathsAL()
createForPathsAL accessor. |
java.util.ArrayList |
getInitArrays()
Returns the collection of Array property initializations. |
java.lang.String |
getInitClass()
Init Class accessor. |
java.util.ArrayList |
getInitLists()
Returns the collection of List property initializations. |
java.util.ArrayList |
getInitMaps()
Returns the collection of Map property initializations. |
java.lang.String |
getInitMethod()
Init Method accessor. |
java.util.ArrayList |
getInitProps()
Returns the collection of simple property initializations. |
long |
getMaxAge()
Max Age accessor. |
java.util.ArrayList |
getMethodCalls()
Returns the collection of method calls. |
java.lang.String |
getName()
Name accessor. |
java.lang.String |
getScope()
Scope accessor. |
void |
setClassName(java.lang.String inClassName)
Class Name mutator. |
void |
setCreateForPaths(java.lang.String inCreateForPaths)
createForPaths mutator. |
void |
setInitClass(java.lang.String inInitClass)
Init Class mutator. |
void |
setInitMethod(java.lang.String inInitMethod)
Init Method mutator. |
void |
setMaxAge(long inMaxAge)
Max Age mutator. |
void |
setName(java.lang.String inName)
Name mutator. |
void |
setScope(java.lang.String inScope)
Scope mutator. |
java.lang.String |
toString()
Overridden toString method. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static org.apache.commons.logging.Log log
private java.lang.String scope
private java.lang.String name
private java.lang.String className
private java.lang.String initClass
private java.lang.String initMethod
private java.util.ArrayList createForPathsAL
private java.lang.String createForPaths
private long maxAge
private java.util.ArrayList initProps
private java.util.ArrayList methodCalls
private java.util.ArrayList initListsTemp
private java.util.ArrayList initLists
private java.util.ArrayList initMapsTemp
private java.util.ArrayList initMaps
private java.util.ArrayList initArraysTemp
private java.util.ArrayList initArrays
Constructor Detail |
public DependencyConfig()
Method Detail |
public void setCreateForPaths(java.lang.String inCreateForPaths)
inCreateForPaths
- The comma-separeted list of paths for which the
dependency will be created. Note that this string
will be parsed and an ArrayList created from it,
which will become the value of createForPathsAL.public java.lang.String getCreateForPaths()
public java.util.ArrayList getCreateForPathsAL()
public void setMaxAge(long inMaxAge)
inMaxAge
- Max age for session-scoped object to be considered "fresh".public long getMaxAge()
public void setScope(java.lang.String inScope)
inScope
- Scope of the dependency.public java.lang.String getScope()
public void setName(java.lang.String inName)
inName
- Name the dependency will be stored under.public java.lang.String getName()
public void setClassName(java.lang.String inClassName)
inClassName
- The name of the class for this dependency.public java.lang.String getClassName()
public void setInitClass(java.lang.String inInitClass)
inInitClass
- Name of the class used to initialize the object.public java.lang.String getInitClass()
public void setInitMethod(java.lang.String inInitMethod)
inInitMethod
- Method of initClass that will be called.public java.lang.String getInitMethod()
public void addInitProp(java.lang.String inName, java.lang.String inValue)
inName
- The name fo the property to set.inValue
- The value to set the property to.public java.util.ArrayList getInitProps()
public void addMethodCall(java.lang.String inName, java.lang.String inArguments)
inName
- The name fo the method call.inArguments
- Comma-separated list of arguments (Strings only!) to
be passed to the method.public java.util.ArrayList getMethodCalls()
public void addInitListTemp(java.lang.String inValue)
inValue
- The value that will be added to the object's property.public void addInitList(java.lang.String inMethod, java.lang.String inName)
inMethod
- Name of the method used to set the property.inName
- The name of the List property to set.public java.util.ArrayList getInitLists()
public void addInitArrayTemp(java.lang.String inValue)
inValue
- The value to be added to the object's property.public void addInitArray(java.lang.String inName)
inName
- The name of the Array property to set.public java.util.ArrayList getInitArrays()
public void addInitMapTemp(java.lang.String inKey, java.lang.String inValue)
inKey
- The key to be added to the collection.inValue
- The value to be added to the collection.public void addInitMap(java.lang.String inMethod, java.lang.String inName)
inMethod
- Name of the method used to set the property.inName
- The name fo the Map property to set.public java.util.ArrayList getInitMaps()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |