Package gnu.java.security.action

Examples of gnu.java.security.action.GetPropertiesAction


        return token.text;
    }
   
    @Override
    public void doComplete(CompletionInfo completions, String partial, int flags) {
        Properties ps = AccessController.doPrivileged(new GetPropertiesAction());
        for (Object key : ps.keySet()) {
            String name = (String) key;
            if (name.startsWith(partial)) {
                completions.addCompletion(name);
            }
View Full Code Here


        if (properties == null) {
            if (parentContext != null) {
                properties = parentContext.properties;
            } else {
                // FIXME ... temporary
                properties = AccessController.doPrivileged(new GetPropertiesAction());
            }
            properties = (Properties) properties.clone();
        }
        if (environment == null) {
            if (parentContext != null) {
View Full Code Here

        registerArguments(allArg, hardwareMaschineArg, networkImplNameArg, releaseLevelArg, implNameArg, versionArg);
    }

    @Override
    public void execute() throws Exception {
        Properties ps = AccessController.doPrivileged(new GetPropertiesAction());

        String sysname = allArg.isSet() || hardwareMaschineArg.isSet() ? ps.getProperty("os.arch") : "";
        final String nodename = allArg.isSet() || networkImplNameArg.isSet() ? ps.getProperty("os.name") : "";
        final String release = allArg.isSet() || releaseLevelArg.isSet() ? ps.getProperty("os.version") : "";
        final String version = allArg.isSet() || implNameArg.isSet() ? ps.getProperty("os.name") : "";
View Full Code Here

                (Map<String, String>) AccessController.doPrivileged(new GetEnvAction());
            sortedPs = new TreeMap<Object, Object>(ps);
        } else if (shellArg.isSet()) {
            sortedPs = ShellUtils.getCurrentShell().getProperties();
        } else {
            Properties ps = AccessController.doPrivileged(new GetPropertiesAction());
            sortedPs = new TreeMap<Object, Object>(ps);
        }

        final PrintWriter out = getOutput().getPrintWriter();
        for (Map.Entry<?, ?> entry : sortedPs.entrySet()) {
View Full Code Here

     * @param properties
     * @param mainClass
     * @param args
     */
    public Isolate(StreamBindings bindings, Properties properties, String mainClass, String... args) {
        Properties defaultProperties = AccessController.doPrivileged(new GetPropertiesAction());
        if(properties != null)
            defaultProperties.putAll(properties);
        this.impl = new VmIsolate(this, bindings.getBindings(), defaultProperties, mainClass, args);
    }
View Full Code Here

TOP

Related Classes of gnu.java.security.action.GetPropertiesAction

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.