public class PropertyDefaultContext extends java.lang.Object implements PropertyContext
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NAME |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getDirect(java.lang.String propName)
this root level context can only get properties from the
outermost context
|
static PropertyDefaultContext |
getInstance() |
java.lang.String |
getName()
Get the name of this context
|
static java.util.Hashtable |
getOverriddenProperties() |
PropertyContext |
getParent()
return the parent context
|
java.lang.Object |
getRecursive(java.lang.String propName) |
static void |
main(java.lang.String[] args) |
void |
setDirect(java.lang.String propName,
java.lang.Object value)
For 9.0.4 the only properties we can reasonably manipulate
are the MOM's or the Diagnostics - so any attempt to do otherwise will
throw a runtime error
|
void |
setName(java.lang.String contextName) |
void |
setParent(PropertyContext pc) |
void |
setRecursive(java.lang.String propName,
java.lang.Object value,
java.lang.String contextName)
Set the value of a property in the first parent context whose
name matches the contextName.
|
public static final java.lang.String NAME
public static PropertyDefaultContext getInstance()
public static java.util.Hashtable getOverriddenProperties()
public static void main(java.lang.String[] args)
public java.lang.Object getDirect(java.lang.String propName)
getDirect in interface PropertyContextpropName - the name of the propertypublic java.lang.Object getRecursive(java.lang.String propName)
getRecursive in interface PropertyContextpublic void setDirect(java.lang.String propName,
java.lang.Object value)
setDirect in interface PropertyContextpropName - the name of the propertypublic void setRecursive(java.lang.String propName,
java.lang.Object value,
java.lang.String contextName)
PropertyContextsetRecursive in interface PropertyContextpropName - the name of the propertyvalue - - the value to be setcontextName - - the name of the parent context to be usedpublic PropertyContext getParent()
PropertyContextgetParent in interface PropertyContextpublic java.lang.String getName()
PropertyContextgetName in interface PropertyContextpublic void setName(java.lang.String contextName)
setName in interface PropertyContextpublic void setParent(PropertyContext pc)
setParent in interface PropertyContext