org.rhq.core.pc.plugin
Class PluginDescriptorLoader

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

public class PluginDescriptorLoader
extends Object

This class handles parsing and validating an agent plugin's descriptor.

Author:
John Mazzitelli

Constructor Summary
PluginDescriptorLoader(URL pluginJarUrl, ClassLoader pluginClassLoader)
           
 
Method Summary
 ClassLoader getPluginClassLoader()
           
 PluginDescriptor loadPluginDescriptor()
          Loads and validates the plugin descriptor from the plugin jar associated with this loader.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PluginDescriptorLoader

public PluginDescriptorLoader(URL pluginJarUrl,
                              ClassLoader pluginClassLoader)
                       throws PluginContainerException
Throws:
PluginContainerException
Method Detail

getPluginClassLoader

public ClassLoader getPluginClassLoader()

loadPluginDescriptor

public PluginDescriptor loadPluginDescriptor()
                                      throws PluginContainerException
Loads and validates the plugin descriptor from the plugin jar associated with this loader.

Returns:
the JAXB plugin descriptor object
Throws:
PluginContainerException - on failure to load the descriptor

toString

public String toString()
Overrides:
toString in class Object


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