org.rhq.core.pluginapi.inventory
Interface ClassLoaderFacet<T extends ResourceComponent<?>>
- Type Parameters:
T
- the parent resource component type for those resources discovered by this discovery component
public interface ClassLoaderFacet<T extends ResourceComponent<?>>
This allows a discovery component to provide additional jars to placement in a plugin classloader. This is used
to support those resource types that require different classloaders per connection to different managed resource
instances.
Note: this facet is to be implemented by ResourceDiscoveryComponent
instances, unlike the other
facets that are implemented by the resource instance components.
getAdditionalClasspathUrls
List<URL> getAdditionalClasspathUrls(ResourceDiscoveryContext<T> context,
DiscoveredResourceDetails details)
throws Exception
- This method provides the location for additional jars that are needed in the resource's classloader
in order to properly connect and talk to the managed resource.
- Parameters:
context
- information for the component that helps it perform its discoverydetails
- provides information on the managed resource instance that is to be connected to
- Returns:
- list of URLs to jar files needed in order to successfully connect to the managed
resource instance described by
details
. The returned value can be null
,
empty or contain any number of URLs.
- Throws:
Exception
- if the plugin needs additional jars to manage the resource but those jars cannot be found.
Copyright © 2008-2011 Red Hat, Inc.. All Rights Reserved.