org.rhq.plugins.platform
Class MacOSXPlatformDiscoveryComponent

java.lang.Object
  extended by org.rhq.plugins.platform.PlatformDiscoveryComponent
      extended by org.rhq.plugins.platform.MacOSXPlatformDiscoveryComponent
All Implemented Interfaces:
ResourceDiscoveryComponent

public class MacOSXPlatformDiscoveryComponent
extends PlatformDiscoveryComponent


Constructor Summary
MacOSXPlatformDiscoveryComponent()
           
 
Method Summary
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.
 
Methods inherited from class org.rhq.plugins.platform.PlatformDiscoveryComponent
determineResourceKey, determineResourceName, discoverConfiguration, discoverResources, getHostname
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MacOSXPlatformDiscoveryComponent

public MacOSXPlatformDiscoveryComponent()
Method Detail

isPlatformSupported

protected boolean isPlatformSupported(ResourceDiscoveryContext context)
Description copied from class: PlatformDiscoveryComponent
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. If this returns false, 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.

Specified by:
isPlatformSupported in class PlatformDiscoveryComponent
Returns:
true if this instance can support the platform this plugin is running on; false otherwise


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.