|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.ThreadLocal<T>
java.lang.InheritableThreadLocal
org.apache.tools.ant.property.LocalProperties
public class LocalProperties
Thread local class containing local properties.
Method Summary | |
---|---|
void |
addLocal(java.lang.String property)
Add a local property to the current scope. |
void |
copy()
Copy the stack for a parallel thread. |
void |
enterScope()
enter the scope |
java.lang.Object |
evaluate(java.lang.String property,
PropertyHelper helper)
Evaluate a property. |
void |
exitScope()
exit the scope |
static LocalProperties |
get(Project project)
Get a localproperties for the given project. |
protected java.lang.Object |
initialValue()
Get the initial value. |
boolean |
set(java.lang.String property,
java.lang.Object value,
PropertyHelper propertyHelper)
Set a property. |
boolean |
setNew(java.lang.String property,
java.lang.Object value,
PropertyHelper propertyHelper)
Set a *new" property. |
Methods inherited from class java.lang.InheritableThreadLocal |
---|
childValue |
Methods inherited from class java.lang.ThreadLocal |
---|
get, remove, set |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static LocalProperties get(Project project)
project
- the project to retieve the localproperties for.
protected java.lang.Object initialValue()
initialValue
in class java.lang.ThreadLocal
public void addLocal(java.lang.String property)
property
- the property name to add.public void enterScope()
public void exitScope()
public void copy()
public java.lang.Object evaluate(java.lang.String property, PropertyHelper helper)
evaluate
in interface PropertyHelper.PropertyEvaluator
property
- the property's String "identifier".helper
- the invoking PropertyHelper.
public boolean setNew(java.lang.String property, java.lang.Object value, PropertyHelper propertyHelper)
setNew
in interface PropertyHelper.PropertySetter
property
- the property's String "identifier".value
- the value to set.propertyHelper
- the invoking PropertyHelper.
public boolean set(java.lang.String property, java.lang.Object value, PropertyHelper propertyHelper)
set
in interface PropertyHelper.PropertySetter
property
- the property's String "identifier".value
- the value to set.propertyHelper
- the invoking PropertyHelper.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |