org.rhq.enterprise.server.plugin.pc
Class ServerPluginEnvironment
java.lang.Object
org.rhq.enterprise.server.plugin.pc.ServerPluginEnvironment
public class ServerPluginEnvironment
- extends Object
Manages the context of a loaded plugin.
- Author:
- John Mazzitelli
ServerPluginEnvironment
public ServerPluginEnvironment(URL pluginUrl,
ClassLoader classLoader,
ServerPluginDescriptorType descriptor)
throws Exception
- Creates a new plugin environment.
- Parameters:
pluginUrl - where the plugin jar is located (may be null, mainly to support tests)classLoader - the plugin's new classloaderdescriptor - the plugin descriptor that was found and parsed in the plugin jar at the given URL
- Throws:
Exception
getPluginKey
public org.rhq.core.domain.plugin.PluginKey getPluginKey()
getPluginUrl
public URL getPluginUrl()
getPluginClassLoader
public ClassLoader getPluginClassLoader()
getPluginDescriptor
public ServerPluginDescriptorType getPluginDescriptor()
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.