public class ManagedComponentDiscoveryComponent<P extends ProfileServiceComponent<?>> extends Object implements ResourceDiscoveryComponent<P>
| Constructor and Description |
|---|
ManagedComponentDiscoveryComponent() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
accept(ResourceDiscoveryContext<P> discoveryContext,
org.jboss.managed.api.ManagedComponent component)
This method is called during
discoverResources(ResourceDiscoveryContext) to determine
whether given component that has been found in the management view by this component's configured
component type is applicable in the discovery context. |
Set<DiscoveredResourceDetails> |
discoverResources(ResourceDiscoveryContext<P> discoveryContext) |
protected org.jboss.managed.api.ComponentType |
getComponentType(ResourceDiscoveryContext<P> discoveryContext) |
protected String |
getResourceKey(org.jboss.managed.api.ManagedComponent component)
Return the unique resource key for the component.
|
protected String |
getResourceName(org.jboss.managed.api.ManagedComponent component)
Subclasses can override this method if they don't want to use the ManagedComponent name as the initial
Resource name.
|
protected String |
getResourceVersion(org.jboss.managed.api.ManagedComponent component)
Subclasses can override this method if they want the discovered ManagedComponent to have a version.
|
public Set<DiscoveredResourceDetails> discoverResources(ResourceDiscoveryContext<P> discoveryContext) throws Exception
discoverResources in interface ResourceDiscoveryComponent<P extends ProfileServiceComponent<?>>Exceptionprotected org.jboss.managed.api.ComponentType getComponentType(ResourceDiscoveryContext<P> discoveryContext)
protected String getResourceName(org.jboss.managed.api.ManagedComponent component)
component - the ManagedComponent being discoveredprotected String getResourceKey(org.jboss.managed.api.ManagedComponent component)
ManagedComponentComponent.getManagedComponent() method as well
because the return value of this method is used as the component name
(ManagedComponentComponent.getComponentName()).component - the component to uniquely identifyprotected String getResourceVersion(org.jboss.managed.api.ManagedComponent component)
component - the ManagedComponent being discoveredprotected boolean accept(ResourceDiscoveryContext<P> discoveryContext, org.jboss.managed.api.ManagedComponent component)
discoverResources(ResourceDiscoveryContext) to determine
whether given component that has been found in the management view by this component's configured
component type is applicable in the discovery context.
Because the Profile Service doesn't always provide the components in a hierarchy we present the resources we need this method to filter the components into their appropriate places.
This default implementation always returns true.
discoveryContext - the current discovery contextcomponent - the discovered componentCopyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.