org.rhq.enterprise.server.plugin.pc
Class ServerPluginEnvironment

java.lang.Object
  extended by org.rhq.enterprise.server.plugin.pc.ServerPluginEnvironment

public class ServerPluginEnvironment
extends Object

Manages the context of a loaded plugin.

Author:
John Mazzitelli

Constructor Summary
ServerPluginEnvironment(URL pluginUrl, ClassLoader classLoader, ServerPluginDescriptorType descriptor)
          Creates a new plugin environment.
 
Method Summary
 ClassLoader getPluginClassLoader()
           
 ServerPluginDescriptorType getPluginDescriptor()
           
 org.rhq.core.domain.plugin.PluginKey getPluginKey()
           
 URL getPluginUrl()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 classloader
descriptor - the plugin descriptor that was found and parsed in the plugin jar at the given URL
Throws:
Exception
Method Detail

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.