|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.enterprise.server.plugin.pc.content.metadata.ContentSourcePluginMetadataManager
public class ContentSourcePluginMetadataManager
This is meant to provide an interface to the underlying metadata of a server plugin for content. It will load, translate and cache the metadata for the rest of the services in the form of the domain object classes and the jaxb version of the descriptors.
| Constructor Summary | |
|---|---|
ContentSourcePluginMetadataManager()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ContentSourcePluginMetadataManager()
| Method Detail |
|---|
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 transform
public 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 return
null 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 returned
null 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 returned
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||