ConfigManager.putProp
Sets a property to a specified value, but only if it has not been set yet.
-
General method:
void
putProp
(String
PropertyName,String
PropertyValue)
-
Specialized method:
void
putProp
(String
ComponentName,String
PropertyName,String
PropertyValue)
Parameters
- PropertyName—property name consisting of a series of period-separated identifiers. For example,
uniface.component.average.name
- PropertyValue—value to give to the property
- ComponentName—component name for the property to be set. If ComponentName is
null
or asterisk (*), the property is set for all components.
Properties
The following properties can be set with configManager.putProp:
Property | Description |
---|---|
name
|
Component name |
apsname
|
Name of the application shell |
asnFile
|
Name of the assignment file |
commandline
|
Command line instructions |
ininame
|
Name of the initialization file |
workdir
|
Working directory for the Configuration Manager |
handler
|
Name of call handler; one of uvm (default) or jvm |
Return Values
None.
Description
putProp
is a static method for class configManager
.
The following line of Java code shows the
use of the putProp
method with
the commandline
property. It assigns that subset to all subsets:
ConfigManager.putProp (null, "commandline", "/ini=c:/uniface/adm/usys.ini" + "/asn=c:/uniface/adm/usys.asn");