public class ServerPluginDescriptorMetadataParser extends Object
| Constructor and Description |
|---|
ServerPluginDescriptorMetadataParser() |
| Modifier and Type | Method and Description |
|---|---|
static List<ControlDefinition> |
getControlDefinitions(ServerPluginDescriptorType descriptor)
Returns the list of all defined control operations.
|
static String |
getFullyQualifiedClassName(ServerPluginDescriptorType descriptor,
String className)
Given a plugn descriptor that may or may not have defined a
package name,
this converts the given class name to a fully qualified class name. |
static String |
getPluginComponentClassName(ServerPluginDescriptorType descriptor)
Returns the fully qualified class name of the plugin component.
|
static org.rhq.core.domain.configuration.definition.ConfigurationDefinition |
getPluginConfigurationDefinition(ServerPluginDescriptorType descriptor)
Returns the global configuration definition for the plugin.
|
static List<ScheduledJobDefinition> |
getScheduledJobs(org.rhq.core.domain.configuration.Configuration scheduledJobsConfig)
Given a configuration, this will return any scheduled jobs that are defined in it.
|
static List<ScheduledJobDefinition> |
getScheduledJobs(ServerPluginDescriptorType descriptor)
Given a descriptor, this will parse it and return any scheduled jobs that it finds.
|
static org.rhq.core.domain.configuration.definition.ConfigurationDefinition |
getScheduledJobsDefinition(ServerPluginDescriptorType descriptor)
Returns the scheduled jobs configuration definition for the plugin.
|
public ServerPluginDescriptorMetadataParser()
public static String getPluginComponentClassName(ServerPluginDescriptorType descriptor)
null.descriptor - null if not specifiedpublic static String getFullyQualifiedClassName(ServerPluginDescriptorType descriptor, String className)
package name,
this converts the given class name to a fully qualified class name.
If the descriptor does not define a package name, this method does nothing and returns className unchanged.
If className contains at least one "." character, it is assumed to be already fully qualified and so it
will be returned unchanged.
If className has no "." characters, and the descriptor defines a package name, that package name
will prefix the given class name and will form the fully qualified class name that is returned.descriptor - a plugin descriptor that may or may not define a package nameclassName - a classname that may or may not be fully qualifiednull if className is nullpublic static List<ControlDefinition> getControlDefinitions(ServerPluginDescriptorType descriptor) throws Exception
descriptor - Exception - if the plugin descriptor was invalidpublic static org.rhq.core.domain.configuration.definition.ConfigurationDefinition getPluginConfigurationDefinition(ServerPluginDescriptorType descriptor) throws Exception
getScheduledJobs(ServerPluginDescriptorType) for that.descriptor - null if the descriptor did not define plugin config.Exception - if the plugin descriptor was invalidpublic static org.rhq.core.domain.configuration.definition.ConfigurationDefinition getScheduledJobsDefinition(ServerPluginDescriptorType descriptor) throws Exception
getScheduledJobs(ServerPluginDescriptorType) to return a list of a more
strongly typed jobs object, as opposed to a generic configuration definition.descriptor - null if the descriptor did not define plugin config.Exception - if the plugin descriptor was invalidpublic static List<ScheduledJobDefinition> getScheduledJobs(ServerPluginDescriptorType descriptor) throws Exception
descriptor - Exception - if the plugin descriptor was invalidpublic static List<ScheduledJobDefinition> getScheduledJobs(org.rhq.core.domain.configuration.Configuration scheduledJobsConfig) throws Exception
jobsConfig - the configuration with the scheduled job informationException - if the configuration was invalidCopyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.