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

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

public class ServerPluginEnvironment
extends java.lang.Object

Manages the context of a loaded plugin.

Author:
John Mazzitelli

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

Constructor Detail

ServerPluginEnvironment

public ServerPluginEnvironment(java.net.URL pluginUrl,
                               java.lang.ClassLoader classLoader,
                               ServerPluginDescriptorType descriptor)
                        throws java.lang.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:
java.lang.Exception
Method Detail

getPluginKey

public PluginKey getPluginKey()

getPluginUrl

public java.net.URL getPluginUrl()

getPluginClassLoader

public java.lang.ClassLoader getPluginClassLoader()

getPluginDescriptor

public ServerPluginDescriptorType getPluginDescriptor()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2008-2009 Red Hat, Inc.. All Rights Reserved.