public class BsdPlatformDiscoveryComponent extends PlatformDiscoveryComponent
| Constructor and Description |
|---|
BsdPlatformDiscoveryComponent() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
isPlatformSupported(ResourceDiscoveryContext context)
Subclasses will implement this method to tell this class whether or not it can discover the platform of the
resource type found in the given context.
|
determineResourceKey, determineResourceName, discoverConfiguration, discoverResources, getHostnameprotected boolean isPlatformSupported(ResourceDiscoveryContext context)
PlatformDiscoveryComponentfalse, this subclass discovery component
instance does not recognize the platform.
It is very important that all subclasses must return false except one for any given
platform. That is to say, if running on "RHEL 5", only the subclass that supports RHEL 5 must return
true, all others must return false. If running on "Windows XP", only the suclass that
supports Windows XP must return true. The only exception to this rule is the
fallback Java platform discovery component, which will always return
true because the fallback Java platform is always supported.
isPlatformSupported in class PlatformDiscoveryComponenttrue if this instance can support the platform this plugin is running on; false
otherwiseCopyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.