Package gnu.java.security.action

Examples of gnu.java.security.action.GetPropertyAction


    private synchronized List<FontProvider<?>> getProviders() {
// TODO fix true type font
//        final String firstProviderName = (String)AccessController.
// doPrivileged(new GetPropertyAction("jnode.font.renderer", "ttf"));
        final String firstProviderName =
            (String) AccessController.doPrivileged(new GetPropertyAction("jnode.font.renderer", "bdf"));
        if ((providers.size() > 1) && !firstProviderName.equals(providers.get(0).getName())) {
            for (int i = 1; i < providers.size(); i++) {
                if (firstProviderName.equals(providers.get(i).getName())) {
                   
                    // exchange the providers so that firstProvider is always at index 0
View Full Code Here


     * @return The default screen device
     * @see java.awt.GraphicsEnvironment#getDefaultScreenDevice()
     */
    public GraphicsDevice getDefaultScreenDevice() {
        verifyCache();
        final String devId = (String) AccessController.doPrivileged(new GetPropertyAction("jnode.awt.device"));
        boolean reload = (defaultDevice == null);
        if ((devId != null) && (defaultDevice != null)) {
            if (!devId.equals(defaultDevice.getIDstring())) {
                reload = true;
            }
View Full Code Here

        log.debug("getImage(" + filename + ")");
        return testErrorImage(AccessController.doPrivileged(new PrivilegedAction<Image>() {

            public Image run() {
                try {
                    final String userDir = AccessController.doPrivileged(new GetPropertyAction("user.dir"));
                    Image image = getImage(new URL("file:" + new File(userDir, filename)));
                    return image != null ? image : getImage(new URL("file:" + new File(filename).getAbsolutePath()));
                } catch (Exception ex) {
                    log.debug("Error loading image", ex);
                }
View Full Code Here

            log.info("Supported graphics configurations: ");
            GraphicsConfiguration[] configurations = fbDevice.getConfigurations();
            for (GraphicsConfiguration g_conf : configurations) {
                log.info(g_conf);
            }
            String screen_size = AccessController.doPrivileged(new GetPropertyAction("jnode.awt.screensize", "none"));
            if ("none".equals(screen_size)) {
                config = (JNodeGraphicsConfiguration) fbDevice.getDefaultConfiguration();
            } else {
                boolean found = false;
                for (GraphicsConfiguration g_conf : configurations) {
View Full Code Here

        // Set the context classloader
        Thread.currentThread().setContextClassLoader(
            registry.getPluginsClassLoader());

        // Start the plugins
        final String cmdLine = (String) AccessController.doPrivileged(new GetPropertyAction("jnode.cmdline", ""));
        final boolean debug = (cmdLine.indexOf("debug") > 0);
        final List<PluginDescriptor> descrList = createPluginDescriptorList();

        // Order list by priority
        Collections.sort(descrList, new PriorityComparator());
View Full Code Here

    /**
     * Create a new instance.
     */
    public AbstractDeviceManager() {
        this((String) AccessController.doPrivileged(new GetPropertyAction(
            "jnode.cmdline", "")));
    }
View Full Code Here

        border.setTitleColor(Color.cyan);
        JScrollPane sp = new JScrollPane(textArea);
        sp.setViewportBorder(border);
        sp.setForeground(Color.cyan);
        panel.add(sp, BorderLayout.CENTER);
        directory = (String) AccessController.doPrivileged(new GetPropertyAction("user.dir"));
        if (file != null) {
            Boolean exists = AccessController.doPrivileged(new PrivilegedAction<Boolean>() {
                public Boolean run() {
                    return file.exists();
                }
View Full Code Here

TOP

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

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.