Package org.rhq.core.pluginapi.plugin

Examples of org.rhq.core.pluginapi.plugin.PluginContext


        String pluginName = pluginEnvironment.getPluginName();

        // tell the plugin we have loaded it
        PluginLifecycleListener overseer = getPluginLifecycleListener(pluginName, pluginEnvironment, pluginDescriptor);
        if (overseer != null) {
            PluginContext context = createPluginContext(pluginName);
            ClassLoader originalContextClassLoader = Thread.currentThread().getContextClassLoader();
            try {
                Thread.currentThread().setContextClassLoader(classLoader);
                overseer.initialize(context);
            } catch (Throwable t) {
View Full Code Here


        SystemInfo sysInfo = SystemInfoFactory.createSystemInfo();
        File dataDir = new File(pluginContainerConfiguration.getDataDirectory(), pluginName);
        File tmpDir = pluginContainerConfiguration.getTemporaryDirectory();
        String pcName = pluginContainerConfiguration.getContainerName();

        PluginContext context = new PluginContext(pluginName, sysInfo, tmpDir, dataDir, pcName);
        return context;
    }
View Full Code Here

TOP

Related Classes of org.rhq.core.pluginapi.plugin.PluginContext

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.