Examples of GetPropertyAction


Examples of com.sun.jmx.mbeanserver.GetPropertyAction

        // Since LinkedHashMap was introduced in SE 1.4, it's conceivable even
        // if very unlikely that we might be the server of a 1.3 client.  In
        // that case you'll need to set this property.  See CR 6334663.
        String useHashMapProp = AccessController.doPrivileged(
                new GetPropertyAction("jmx.tabular.data.hash.map"));
        boolean useHashMap = "true".equalsIgnoreCase(useHashMapProp);

        // Construct the empty contents HashMap
        //
        this.dataMap = useHashMap ?
View Full Code Here

Examples of com.sun.jmx.mbeanserver.GetPropertyAction

    private void checkClassNameOverride() throws SecurityException {
        if (this.getClass().getClassLoader() == null)
            return// We trust bootstrap classes.
        if (overridesGetClassName(this.getClass())) {
            final GetPropertyAction getExtendOpenTypes =
                new GetPropertyAction("jmx.extend.open.types");
            if (AccessController.doPrivileged(getExtendOpenTypes) == null) {
                throw new SecurityException("Cannot override getClassName() " +
                        "unless -Djmx.extend.open.types");
            }
        }
View Full Code Here

Examples of com.sun.jmx.mbeanserver.GetPropertyAction

            // by the value of the "jmx.remote.x.mlet.allow.getMBeansFromURL"
            // system property. If the value of this property is true, calling
            // the MLet's getMBeansFromURL method is allowed. The default value
            // for this property is false.
            final String propName = "jmx.remote.x.mlet.allow.getMBeansFromURL";
            GetPropertyAction propAction = new GetPropertyAction(propName);
            String propValue = AccessController.doPrivileged(propAction);
            boolean allowGetMBeansFromURL = "true".equalsIgnoreCase(propValue);
            if (!allowGetMBeansFromURL) {
                throw new SecurityException("Access denied! MLet method " +
                        "getMBeansFromURL cannot be invoked unless a " +
View Full Code Here

Examples of com.sun.jmx.mbeanserver.GetPropertyAction

     * Instantiate a new builder according to the
     * javax.management.builder.initial System property - if needed.
     **/
    private static synchronized void checkMBeanServerBuilder() {
  try {
      GetPropertyAction act =
    new GetPropertyAction(JmxProperties.JMX_INITIAL_BUILDER);
      String builderClassName = AccessController.doPrivileged(act);

      try {
    final Class newBuilderClass;
    if (builderClassName == null || builderClassName.length() == 0)
View Full Code Here

Examples of com.sun.jmx.mbeanserver.GetPropertyAction

    private void checkClassNameOverride() throws SecurityException {
        if (this.getClass().getClassLoader() == null)
            return// We trust bootstrap classes.
        if (overridesGetClassName(this.getClass())) {
            final GetPropertyAction getExtendOpenTypes =
                new GetPropertyAction("jmx.extend.open.types");
            if (AccessController.doPrivileged(getExtendOpenTypes) == null) {
                throw new SecurityException("Cannot override getClassName() " +
                        "unless -Djmx.extend.open.types");
            }
        }
View Full Code Here

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

Examples of gnu.java.security.action.GetPropertyAction

     * @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

Examples of gnu.java.security.action.GetPropertyAction

        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

Examples of gnu.java.security.action.GetPropertyAction

            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

Examples of gnu.java.security.action.GetPropertyAction

        // 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
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.