org.rhq.core.pc.plugin
Class PluginEnvironment

java.lang.Object
  extended by org.rhq.core.pc.plugin.PluginEnvironment

public class PluginEnvironment
extends Object

Stores the context of a loaded plugin. This currently includes the plugin's name and the loader that was used to load its plugin descriptor.

Author:
Ian Springer

Field Summary
protected  PluginDescriptorLoader pluginDescriptorLoader
           
protected  String pluginName
           
 
Constructor Summary
PluginEnvironment(String pluginName, PluginDescriptorLoader pluginDescriptorLoader)
          Creates a new plugin environment.
 
Method Summary
 void destroy()
           
 ClassLoader getPluginClassLoader()
           
 String getPluginName()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

pluginName

protected String pluginName

pluginDescriptorLoader

protected PluginDescriptorLoader pluginDescriptorLoader
Constructor Detail

PluginEnvironment

public PluginEnvironment(String pluginName,
                         PluginDescriptorLoader pluginDescriptorLoader)
Creates a new plugin environment.

Parameters:
pluginName - the plugin's name
pluginDescriptorLoader - the loader that was used to load the plugin's descriptor
Method Detail

destroy

public void destroy()

getPluginName

public String getPluginName()

getPluginClassLoader

public ClassLoader getPluginClassLoader()

toString

public String toString()
Overrides:
toString in class Object


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