Examples of GetSystemPropertyAction


Examples of de.spotnik.gpl.provider.GetSystemPropertyAction

                this.root = new File(mailhome);
            }
        }
        if( this.root == null)
        {
            PrivilegedAction a = new GetSystemPropertyAction("user.name");
            String userhome = (String) AccessController.doPrivileged(a);
            this.root = new File(userhome, "Mail"); // elm
            if( !this.root.exists())
            {
                this.root = new File(userhome, "mail");
View Full Code Here

Examples of de.spotnik.gpl.provider.GetSystemPropertyAction

            {
                PrivilegedAction a;
                if( File.separatorChar == '/')
                {
                    // Try some common (UNIX) locations.
                    a = new GetSystemPropertyAction("user.name");
                    String username = (String) AccessController.doPrivileged(a);
                    inbox = new File("/var/mail/" + username); // GNU
                    if( !inbox.exists())
                    {
                        inbox = new File("/var/spool/mail/" + username);
                        // common alternative
                    }
                }
                if( !inbox.exists())
                {
                    a = new GetSystemPropertyAction("user.home");
                    String userhome = (String) AccessController.doPrivileged(a);
                    inbox = new File(userhome, "Mailbox"); // qmail etc
                }
            }
            return new MboxFolder(this, inbox, true);
View Full Code Here

Examples of org.apache.yoko.orb.util.GetSystemPropertyAction

        return delegate;
    }

    private static SecurityContextDelegate allocateDelegate() {

        String className = (String)AccessController.doPrivileged(new GetSystemPropertyAction(
                "org.freeorb.csi.SecurityContextClass",
                "org.freeorb.csi.DefaultSecurityContextDelegate"));

        try {
            // get the appropriate class for the loading.
View Full Code Here

Examples of org.apache.yoko.orb.util.GetSystemPropertyAction

     * @param name   The property name
     *
     * @return The property value.
     */
    private static String getSystemProperty(String name) {
        return (String)AccessController.doPrivileged(new GetSystemPropertyAction(name));
    }
View Full Code Here

Examples of org.apache.yoko.rmi.util.GetSystemPropertyAction

     *
     * @return The class used to create StubHandler instances.
     */
    private static StubInitializer getRMIStubInitializer() {
        if (initializer == null) {
            String factory = (String)AccessController.doPrivileged(new GetSystemPropertyAction("org.apache.yoko.rmi.RMIStubInitializerClass", defaultInitializer));
            try {
                initializer  = (StubInitializer)(Util.loadClass(factory, null, null).newInstance());
            } catch (Exception e) {
                throw new org.omg.CORBA.INITIALIZE("Can not create RMIStubInitializer: " + factory);
            }
View Full Code Here

Examples of org.apache.yoko.rmi.util.GetSystemPropertyAction

    private static void init() {
        if (delegate != null)
            return;

        String name = (String)AccessController.doPrivileged(new GetSystemPropertyAction(
                "trifork.rmi.PortableRemoteObjectExtClass",
                "org.apache.yoko.rmi.impl.PortableRemoteObjectExtImpl"));

        Class clz = null;
        try {
View Full Code Here

Examples of org.apache.yoko.rmi.util.GetSystemPropertyAction

            }
        } catch (ClassNotFoundException ex) {
            // ignore
        }

        return (String)AccessController.doPrivileged(new GetSystemPropertyAction("java.rmi.server.codebase"));
    }
View Full Code Here

Examples of org.apache.yoko.rmi.util.GetSystemPropertyAction

                return result;
            }

        } else {

            codebase = (String)AccessController.doPrivileged(new GetSystemPropertyAction("java.rmi.server.codebase"));

            if (codebase != null) {
                try {
                    result = java.rmi.server.RMIClassLoader.loadClass(codebase,
                            name);
View Full Code Here

Examples of org.jboss.weld.security.GetSystemPropertyAction

                if (propertyNameInverted) {
                    propertyName = removeInversion(propertyName);
                }

                String actualPropertyValue = AccessController.doPrivileged(new GetSystemPropertyAction(propertyName));
                if (requiredPropertyValue == null) {
                    active = active && isNotNull(actualPropertyValue, propertyNameInverted);
                } else {
                    boolean requiredPropertyValueInverted = isInverted(requiredPropertyValue);
                    if (requiredPropertyValueInverted) {
View Full Code Here

Examples of org.jboss.weld.security.GetSystemPropertyAction

    private SystemPropertiesConfiguration() {
        xmlValidationDisabled = initBooleanSystemProperty(DISABLE_XML_VALIDATION_KEY, false);
        nonPortableModeEnabled = initBooleanSystemProperty(NON_PORTABLE_MODE_KEY, false);

        String dumpPathString = AccessController.doPrivileged(new GetSystemPropertyAction(CLIENT_PROXY_DUMP_PATH));
        if (dumpPathString != null && !dumpPathString.isEmpty()) {
            File tmp = new File(dumpPathString);
            if (!tmp.isDirectory() && !tmp.mkdirs()) {
                BeanLogger.LOG.directoryCannotBeCreated(tmp.toString());
                proxyDumpPath = null;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.