1 Clazz.declarePackage ("jssun.security.action");
2 Clazz.load (["java.security.PrivilegedAction"], "jssun.security.action.GetPropertyAction", null, function () {
3 c$ = Clazz.decorateAsClass (function () {
5 this.defaultVal = null;
6 Clazz.instantialize (this, arguments);
7 }, jssun.security.action, "GetPropertyAction", null, java.security.PrivilegedAction);
8 Clazz.makeConstructor (c$,
10 this.theProp = theProp;
12 Clazz.makeConstructor (c$,
13 function (theProp, defaultVal) {
14 this.theProp = theProp;
15 this.defaultVal = defaultVal;
17 Clazz.overrideMethod (c$, "run",
19 var value = System.getProperty (this.theProp);
20 return (value == null ? this.defaultVal : value);