01: package javax.xml.bind;
02:
03: import java.security.PrivilegedAction;
04:
05: /**
06: * {@link PrivilegedAction} that gets the system property value.
07: * @author Kohsuke Kawaguchi
08: */
09: final class GetPropertyAction implements PrivilegedAction<String> {
10: private final String propertyName;
11:
12: public GetPropertyAction(String propertyName) {
13: this .propertyName = propertyName;
14: }
15:
16: public String run() {
17: return System.getProperty(propertyName);
18: }
19: }
|