public class Ejb2BeanDiscoveryComponent extends ManagedComponentDiscoveryComponent<AbstractManagedDeploymentComponent>
| Constructor and Description |
|---|
Ejb2BeanDiscoveryComponent() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
accept(ResourceDiscoveryContext<AbstractManagedDeploymentComponent> discoveryContext,
org.jboss.managed.api.ManagedComponent component)
This method is called during
ManagedComponentDiscoveryComponent.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. |
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.
|
discoverResources, getComponentType, getResourceVersionprotected String getResourceKey(org.jboss.managed.api.ManagedComponent component)
ManagedComponentDiscoveryComponentManagedComponentComponent.getManagedComponent() method as well
because the return value of this method is used as the component name
(ManagedComponentComponent.getComponentName()).getResourceKey in class ManagedComponentDiscoveryComponent<AbstractManagedDeploymentComponent>component - the component to uniquely identifyprotected String getResourceName(org.jboss.managed.api.ManagedComponent component)
ManagedComponentDiscoveryComponentgetResourceName in class ManagedComponentDiscoveryComponent<AbstractManagedDeploymentComponent>component - the ManagedComponent being discoveredprotected boolean accept(ResourceDiscoveryContext<AbstractManagedDeploymentComponent> discoveryContext, org.jboss.managed.api.ManagedComponent component)
ManagedComponentDiscoveryComponentManagedComponentDiscoveryComponent.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.
accept in class ManagedComponentDiscoveryComponent<AbstractManagedDeploymentComponent>discoveryContext - the current discovery contextcomponent - the discovered componentCopyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.