oracle.jbo.common
Class PropertyDefaultContext
java.lang.Object
oracle.jbo.common.PropertyDefaultContext
- All Implemented Interfaces:
- PropertyContext
- public class PropertyDefaultContext
- extends java.lang.Object
- implements PropertyContext
temporary (Nov02) implementation to hold a default property context. singleton class
Field Summary |
static java.lang.String |
NAME
|
Method Summary |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NAME
public static final java.lang.String NAME
-
- See Also:
- Constant Field Values
getInstance
public static PropertyDefaultContext getInstance()
getOverriddenProperties
public static java.util.Hashtable getOverriddenProperties()
main
public static void main(java.lang.String[] args)
getDirect
public java.lang.Object getDirect(java.lang.String propName)
- this root level context can only get properties from the outermost context
-
- Specified by:
getDirect
in interface PropertyContext
-
- Parameters:
propName
- the name of the property
getRecursive
public java.lang.Object getRecursive(java.lang.String propName)
-
- Specified by:
getRecursive
in interface PropertyContext
setDirect
public 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
-
- Specified by:
setDirect
in interface PropertyContext
-
- Parameters:
propName
- the name of the property
setRecursive
public void setRecursive(java.lang.String propName,
java.lang.Object value,
java.lang.String contextName)
- Description copied from interface:
PropertyContext
- Set the value of a property in the first parent context whose name matches the contextName.
-
- Specified by:
setRecursive
in interface PropertyContext
-
- Parameters:
propName
- the name of the property
value
- - the value to be set
contextName
- - the name of the parent context to be used
getParent
public PropertyContext getParent()
- Description copied from interface:
PropertyContext
- return the parent context
-
- Specified by:
getParent
in interface PropertyContext
-
- Returns:
- the parent context (or null if this is the top)
getName
public java.lang.String getName()
- Description copied from interface:
PropertyContext
- Get the name of this context
-
- Specified by:
getName
in interface PropertyContext
-
- Returns:
- the parent context (or null if this is the top)
setName
public void setName(java.lang.String contextName)
-
- Specified by:
setName
in interface PropertyContext
setParent
public void setParent(PropertyContext pc)
-
- Specified by:
setParent
in interface PropertyContext
Copyright © 1997, 2005, Oracle. All rights reserved.