Package org.jnode.plugin

Examples of org.jnode.plugin.ConfigurationElement


    private void loadHandlers(Extension ext) {
        final ConfigurationElement[] elems = ext.getConfigurationElements();
        final int count = elems.length;
        final ClassLoader cl = ext.getDeclaringPluginDescriptor().getPluginClassLoader();
        for (int i = 0; i < count; i++) {
            final ConfigurationElement elem = elems[i];
            if (elem.getName().equals("handler")) {
                final String protocol = elem.getAttribute("protocol");
                final String className = elem.getAttribute("class");
                if ((protocol != null) && (className != null)) {
                    try {
                        final Class<? extends URLStreamHandler> cls = cl.loadClass(className);
                        handlerClasses.put(protocol, cls);
                    } catch (ClassNotFoundException ex) {
View Full Code Here


            codeSource2Permissions.put(cs, perms);
            // BootLogInstance.get().debug("Adding permissions for " + cs);
            final ConfigurationElement[] elems = ext.getConfigurationElements();
            final int count = elems.length;
            for (int i = 0; i < count; i++) {
                final ConfigurationElement elem = elems[i];
                final String type = elem.getAttribute("class");
                final String name = elem.getAttribute("name");
                final String actions = elem.getAttribute("actions");

                if (type != null) {
                    final Object perm;
                    try {
                        final Class permClass = cl.loadClass(type);
View Full Code Here

            final Extension ext = exts[i];

            final ConfigurationElement[] elems = ext.getConfigurationElements();
            log.debug("Found " + elems.length + "ce's");
            for (int k = 0; k < elems.length; k++) {
                final ConfigurationElement ce = elems[k];
                if (ce.getName().equals("application")) {
                    final String name = ce.getAttribute("name");
                    final String className = ce.getAttribute("class");
                    if ((name != null) && (className != null)) {
                        log.debug("Adding app " + name);
                        addApp(name, new ActionListener() {
                            public void actionPerformed(ActionEvent e) {
                                startApp(name, className);
View Full Code Here

TOP

Related Classes of org.jnode.plugin.ConfigurationElement

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.