org.rhq.core.clientapi.agent.metadata
Class PluginMetadataParser

java.lang.Object
  extended by org.rhq.core.clientapi.agent.metadata.PluginMetadataParser

public class PluginMetadataParser
extends Object

This is a stateful class intended to hold the related metadata for a single plugin descriptor. It is designed to be used by the PluginMetadataManager that will load multiple plugin descriptors and coordinate their metadata.

Author:
Jason Dobies, Greg Hinkle

Constructor Summary
PluginMetadataParser(PluginDescriptor descriptor, Map<String,PluginMetadataParser> parsersByPlugin)
           
 
Method Summary
 List<org.rhq.core.domain.resource.ResourceType> getAllTypes()
           
 String getComponentClass(org.rhq.core.domain.resource.ResourceType resourceType)
          Returns the fully qualified name of the resource component class for the given ResourceType.
 PluginDescriptor getDescriptor()
           
 String getDiscoveryComponentClass(org.rhq.core.domain.resource.ResourceType resourceType)
          Returns the fully qualified name of the resource discovery component class for the given ResourceType.
 String getPluginLifecycleListenerClass()
           
 Set<org.rhq.core.domain.resource.ResourceType> getRootResourceTypes()
           
 void parseDescriptor()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PluginMetadataParser

public PluginMetadataParser(PluginDescriptor descriptor,
                            Map<String,PluginMetadataParser> parsersByPlugin)
                     throws InvalidPluginDescriptorException
Throws:
InvalidPluginDescriptorException
Method Detail

getDescriptor

public PluginDescriptor getDescriptor()

getPluginLifecycleListenerClass

public String getPluginLifecycleListenerClass()

getAllTypes

public List<org.rhq.core.domain.resource.ResourceType> getAllTypes()

getRootResourceTypes

public Set<org.rhq.core.domain.resource.ResourceType> getRootResourceTypes()
Returns:
the root types for this plugin (not necessarily root for the whole system)

parseDescriptor

public void parseDescriptor()
                     throws InvalidPluginDescriptorException
Throws:
InvalidPluginDescriptorException

getDiscoveryComponentClass

public String getDiscoveryComponentClass(org.rhq.core.domain.resource.ResourceType resourceType)
Returns the fully qualified name of the resource discovery component class for the given ResourceType. This method is only called by the Plugin Container.

Parameters:
resourceType - the ResourceType
Returns:
the resource discovery component class name

getComponentClass

public String getComponentClass(org.rhq.core.domain.resource.ResourceType resourceType)
Returns the fully qualified name of the resource component class for the given ResourceType. This method is only called by the Plugin Container.

Parameters:
resourceType - the ResourceType
Returns:
the resource component class name


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