|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- the parent resource component type for those resources discovered by this discovery componentpublic interface ResourceDiscoveryComponent<T extends ResourceComponent>
The plugin component that defines how resources are discovered. If an implementation of this interface declares its
resource component T
, that means that discovery component implementation can discover child resources
for that type T
parent resource. This means you can nest a hierarchy of discovery components that mimic
the resource type hierarchy as defined in a plugin deployment descriptor.
For example, a discovery component that can discover JBossAS data source services would declare its type
T
as being the JBossAS server resource component (since JBossAS server resources can have children of type
"data source service".
Method Summary | |
---|---|
Set<DiscoveredResourceDetails> |
discoverResources(ResourceDiscoveryContext<T> context)
Asks the discovery component to discover all of its resources. |
Method Detail |
---|
Set<DiscoveredResourceDetails> discoverResources(ResourceDiscoveryContext<T> context) throws InvalidPluginConfigurationException, Exception
auto-discovered
some resources for this component
already. In this case, this discovery component should take those auto-discovered resources from the context and
"prepare them" to be included as part of the returned set of resources, unless there is some reason it doesn't
want to include those resources. By "prepare them", it means to make sure to set their
key
,
name
and other details.
context
- the discovery context that provides the information to the component that helps it perform its
discovery
InvalidPluginConfigurationException
- if a plugin configuration found in the context was somehow invalid
and thus caused a failure to connect to a resource
Exception
- if a generic error occurred that caused the discovery to abort
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |