org.rhq.core.clientapi.descriptor
Class PluginTransformer
java.lang.Object
org.rhq.core.clientapi.descriptor.PluginTransformer
public class PluginTransformer
- extends Object
Transforms some input into a Plugin object.
|
Method Summary |
org.rhq.core.domain.plugin.Plugin |
toPlugin(PluginDescriptor pluginDescriptor,
URL pluginURL)
Takes the given plugin descriptor and plugin JAR file URL and converts them into a
Plugin object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PluginTransformer
public PluginTransformer()
toPlugin
public org.rhq.core.domain.plugin.Plugin toPlugin(PluginDescriptor pluginDescriptor,
URL pluginURL)
- Takes the given plugin descriptor and plugin JAR file URL and converts them into a
Plugin object. This method does not set the content property
of the plugin.
- Parameters:
pluginDescriptor - The plugin descriptor from which to create the pluginpluginURL - The URL of the plugin JAR file from which to create the plugin
- Returns:
- A new plugin object create from the descriptor and plugin URL
- Throws:
PluginTransformException - if any IO errors occur trying to read the JAR file or if a version not in the
plugin descriptor or in the plugin JAR manifest
Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.