public class ContentSourcePluginMetadataManager extends Object
| Constructor and Description |
|---|
ContentSourcePluginMetadataManager() |
| Modifier and Type | Method and Description |
|---|---|
Set<org.rhq.core.domain.content.ContentSourceType> |
getAllContentSourceTypes()
Returns all the
ContentSourceTypes that have been defined in all plugins. |
org.rhq.core.domain.content.ContentSourceType |
getContentSourceType(String typeName)
Returns the
ContentSourceType that has the given name. |
Collection<org.rhq.core.domain.content.ContentSourceType> |
getContentSourceTypesByPlugin(String pluginName)
Returns the
ContentSourceTypes defined by the given plugin. |
String |
getPluginNameFromContentSourceType(org.rhq.core.domain.content.ContentSourceType type)
Returns the name of the plugin that deployed the given content source type.
|
Set<String> |
getPluginNames()
Returns the names of all plugins that defined content source types.
|
Collection<org.rhq.core.domain.content.ContentSourceType> |
loadPlugin(ContentPluginDescriptorType pluginDescriptor)
Transforms the pluginDescriptor into domain object form and stores those objects.
|
void |
unloadPlugin(String pluginName)
This will remove all knowledge of the given plugin - that is, all content source types deployed by the plugin
will be removed from this manager.
|
public void unloadPlugin(String pluginName)
pluginName - the plugin whose types are to be removedpublic Collection<org.rhq.core.domain.content.ContentSourceType> loadPlugin(ContentPluginDescriptorType pluginDescriptor)
pluginDescriptor - the descriptor to transformpublic org.rhq.core.domain.content.ContentSourceType getContentSourceType(String typeName)
ContentSourceType that has the given name. If no plugin defined a type with that name,
null is returned.typeName - the name of the content source type to returnnull if none existspublic Set<org.rhq.core.domain.content.ContentSourceType> getAllContentSourceTypes()
ContentSourceTypes that have been defined in all plugins.public Set<String> getPluginNames()
public Collection<org.rhq.core.domain.content.ContentSourceType> getContentSourceTypesByPlugin(String pluginName)
ContentSourceTypes defined by the given plugin. If there is no plugin with that name,
null is returned.pluginName - the name of the plugin whose types are to be returnednull if no plugin exists with that
name - the returned collection is not a copy, its backed by this managerpublic String getPluginNameFromContentSourceType(org.rhq.core.domain.content.ContentSourceType type)
null will be returned if
unknown.type - the name of the plugin that deployed this type is to be returnedCopyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.