Package org.rhq.enterprise.server.plugin.pc

Examples of org.rhq.enterprise.server.plugin.pc.ServerPluginComponent


        }

        @Override
        protected ServerPluginComponent createServerPluginComponent(ServerPluginEnvironment environment)
            throws Exception {
            ServerPluginComponent component = super.createServerPluginComponent(environment);
            components.put(environment.getPluginKey().getPluginName(), component);
            return component;
        }
View Full Code Here


                // a non-null, valid bundle type name - we have other code that expects this to be true
                throw new Exception("The bundle plugin [" + env.getPluginKey().getPluginName()
                    + "] did not specify a valid bundle type in its descriptor");
            }

            ServerPluginComponent component = createServerPluginComponent(env);
            if (!(component instanceof BundleServerPluginFacet)) {
                throw new Exception("The bundle plugin [" + env.getPluginKey().getPluginName()
                    + "] has an invalid component [" + component + "]. It does not implement ["
                    + BundleServerPluginFacet.class + "]");
            }
View Full Code Here

            throw new IllegalArgumentException("Bundle type [" + bundleTypeName + "] is not known to the system");
        }

        // get the facet and call the parse method in the appropriate classloader
        String pluginName = pluginEnv.getPluginKey().getPluginName();
        ServerPluginComponent component = getServerPluginComponent(pluginName);
        BundleServerPluginFacet facet = (BundleServerPluginFacet) component; // we know this cast will work because our loadPlugin ensured so
        getLog().debug("Bundle server plugin [" + pluginName + "] is parsing a bundle recipe");
        ClassLoader originalContextClassLoader = Thread.currentThread().getContextClassLoader();
        try {
            Thread.currentThread().setContextClassLoader(pluginEnv.getPluginClassLoader());
View Full Code Here

        for (ServerPluginEnvironment env : getPluginEnvironments()) {
            BundlePluginDescriptorType descriptor = (BundlePluginDescriptorType) env.getPluginDescriptor();

            // get the facet and see if this plugin can deal with the recipe
            String pluginName = env.getPluginKey().getPluginName();
            ServerPluginComponent component = getServerPluginComponent(pluginName);
            BundleServerPluginFacet facet = (BundleServerPluginFacet) component; // we know this cast will work because our loadPlugin ensured so
            getLog().debug("Bundle server plugin [" + pluginName + "] is parsing a recipe");
            ClassLoader originalContextClassLoader = Thread.currentThread().getContextClassLoader();
            try {
                Thread.currentThread().setContextClassLoader(env.getPluginClassLoader());
View Full Code Here

        for (ServerPluginEnvironment env : getPluginEnvironments()) {
            BundlePluginDescriptorType descriptor = (BundlePluginDescriptorType) env.getPluginDescriptor();

            // get the facet and see if this plugin can deal with the distro
            String pluginName = env.getPluginKey().getPluginName();
            ServerPluginComponent component = getServerPluginComponent(pluginName);
            BundleServerPluginFacet facet = (BundleServerPluginFacet) component; // we know this cast will work because our loadPlugin ensured so
            getLog().debug(
                "Bundle server plugin [" + pluginName + "] is parsing a distribution file [" + distributionFile + "]");
            ClassLoader originalContextClassLoader = Thread.currentThread().getContextClassLoader();
            try {
View Full Code Here

        }

        @Override
        protected ServerPluginComponent createServerPluginComponent(ServerPluginEnvironment environment)
            throws Exception {
            ServerPluginComponent component = super.createServerPluginComponent(environment);
            components.put(environment.getPluginKey().getPluginName(), component);
            return component;
        }
View Full Code Here

TOP

Related Classes of org.rhq.enterprise.server.plugin.pc.ServerPluginComponent

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.