< prev index next >
src/java.corba/share/classes/com/sun/corba/se/impl/orbutil/GetPropertyAction.java
Print this page
*** 33,43 ****
*
* <p>An instance of this class can be used as the argument of
* <code>AccessController.doPrivileged</code>.
*
* <p>The following code retrieves the value of the system
! * property named <code>"prop"</code> as a privileged action: <p>
*
* <pre>
* String s = (String) java.security.AccessController.doPrivileged(
* new GetPropertyAction("prop"));
* </pre>
--- 33,43 ----
*
* <p>An instance of this class can be used as the argument of
* <code>AccessController.doPrivileged</code>.
*
* <p>The following code retrieves the value of the system
! * property named <code>"prop"</code> as a privileged action:
*
* <pre>
* String s = (String) java.security.AccessController.doPrivileged(
* new GetPropertyAction("prop"));
* </pre>
*** 65,75 ****
/**
* Constructor that takes the name of the system property and the default
* value of that property.
*
* @param theProp the name of the system property.
! * @param defaulVal the default value.
*/
public GetPropertyAction(String theProp, String defaultVal) {
this.theProp = theProp;
this.defaultVal = defaultVal;
}
--- 65,75 ----
/**
* Constructor that takes the name of the system property and the default
* value of that property.
*
* @param theProp the name of the system property.
! * @param defaultVal the default value.
*/
public GetPropertyAction(String theProp, String defaultVal) {
this.theProp = theProp;
this.defaultVal = defaultVal;
}
< prev index next >