|
Oracle Fusion Middleware Java API Reference for Oracle ADF Share 11g Release 1 (11.1.1.9.0) E52934-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.adfinternal.share.props.ConfigPropertyManagerTester
public class ConfigPropertyManagerTester
This class provides functionality for writing SRG tests for the ADF configuration properties feature. Specifically it provides the setDefaultProperty API that allows setting of properties during runtime. For writing SRG tests use: CacheConfigPropertyManagerTester configPropTester = CacheConfigPropertyManagerTester.getCacheConfigPropertyManagerTester(); configPropTester.setTestMode(true); configPropTester.getProperty("oracle.adf.share.SomeProp"); configPropTester.setDefaultProperty("oracle.adf.share.SomeProp","newValue");
oracle.adf.share.props.CacheConfigPropertyManager
Constructor Summary | |
---|---|
protected |
ConfigPropertyManagerTester() |
Method Summary | |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener) Add a PropertyChangeListener to the listener list. |
java.lang.Boolean |
getBooleanProperty(java.lang.String key) returns the property value for the specified key. |
static ConfigPropertyManagerTester |
getConfigPropertyManagerTester() Returns the instance of this class with test mode 'false' |
java.lang.Integer |
getIntegerProperty(java.lang.String key) returns the property value for the specified key. |
java.lang.String |
getPropDump() |
java.lang.String |
getProperty(java.lang.String name) returns the property value for the specified key. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener) Remove a PropertyChangeListener from the listener list. |
void |
setProperty(java.lang.String key, java.lang.Object value) sets the specified property value. |
void |
setProperty(java.lang.String name, java.lang.String value) sets the property value. |
void |
setTestMode(boolean mode) sets the test Mode. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected ConfigPropertyManagerTester()
Method Detail |
---|
public static ConfigPropertyManagerTester getConfigPropertyManagerTester()
public void setTestMode(boolean mode)
mode
- the test mode to set topublic void setProperty(java.lang.String name, java.lang.String value)
oracle.adf.share.props.CacheConfigPropertyManagerTester#setTestMode
name
- name of the propertyvalue
- value of the propertypublic java.lang.String getProperty(java.lang.String name)
ConfigPropertyManager
If the property name is not found, null value is returned. If the property name does not start with "oracle." or is greater than 76 characters, null value is returned.name
- the name of the propertypublic java.lang.String getPropDump()
public java.lang.Boolean getBooleanProperty(java.lang.String key)
oracle.adf.share.props.CacheConfigPropertyManager
the string value of the property is converted to Boolean. For conversion Boolean.valueOf(boolean)
operation is used. The converted value is cached so only the first call to this API takes the type conversion hit An ADFShareException is thrown if the conversion fails.name
- the name of the propertypublic java.lang.Integer getIntegerProperty(java.lang.String key)
oracle.adf.share.props.CacheConfigPropertyManager
the string value of the property is converted to Integer. For conversion Integer.valueOf(java.lang.String, int)
operation is used. The converted value is cached so only the first call to this API takes the type conversion hit An ADFShareException is thrown if the conversion fails.name
- the name of the propertypublic void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
is null, no exception is thrown and no action is taken.listener
- The PropertyChangeListener to be addedpublic void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
was added more than once to the same event source, it will be notified one less time after being removed. If listener
is null, or was never added, no exception is thrown and no action is taken.listener
- The PropertyChangeListener to be removedpublic void setProperty(java.lang.String key, java.lang.Object value)
key
- the property keyvalue
- value of the property to be set.
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Share 11g Release 1 (11.1.1.9.0) E52934-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |