Package org.rhq.core.clientapi.agent.metadata.PluginDependencyGraph

Examples of org.rhq.core.clientapi.agent.metadata.PluginDependencyGraph.PluginDependency


        List<PluginDependencyGraph.PluginDependency> dependencies) {

        if (pluginName != null) {
            boolean useClasses = false;
            boolean required = false;
            PluginDependency dep = new PluginDependencyGraph.PluginDependency(pluginName, useClasses, required);
            if (!dependencies.contains(dep)) {
                // only add it if it doesn't exist yet - this is so we don't override a required dep with an optional one
                dependencies.add(dep);
            }
        }
View Full Code Here


    }

    private void addPlugin(PluginDependencyGraph graph, String pluginName, String... dependencyNames) {
        List<PluginDependency> dependencies = new ArrayList<PluginDependency>();
        for (String name : dependencyNames) {
            dependencies.add(new PluginDependency(name, false, true));
        }

        graph.addPlugin(pluginName, dependencies);
    }
View Full Code Here

    }

    private void addPluginWithOptionalDeps(PluginDependencyGraph graph, String pluginName, String... dependencyNames) {
        List<PluginDependency> dependencies = new ArrayList<PluginDependency>();
        for (String name : dependencyNames) {
            dependencies.add(new PluginDependency(name, false, false));
        }

        graph.addPlugin(pluginName, dependencies);
    }
View Full Code Here

TOP

Related Classes of org.rhq.core.clientapi.agent.metadata.PluginDependencyGraph.PluginDependency

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.