com.virtuosotechnologies.lib.platform
Class MacOSXPlatformProvider

java.lang.Object
  extended bycom.virtuosotechnologies.lib.platform.MacOSXPlatformProvider
All Implemented Interfaces:
PlatformProvider

public class MacOSXPlatformProvider
extends Object
implements PlatformProvider

A PlatformProvider for Mac OS X


Constructor Summary
MacOSXPlatformProvider()
           
 
Method Summary
 boolean initialize()
          Initialize this provider.
 Object performOperation(String operation, Object data)
          Perform a platform-specific operation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MacOSXPlatformProvider

public MacOSXPlatformProvider()
Method Detail

initialize

public boolean initialize()
Initialize this provider. Returns a boolean value specifying whether the provider is supported by the running platform or not.

Specified by:
initialize in interface PlatformProvider
Returns:
true if the provider is supported, or false if not.

performOperation

public Object performOperation(String operation,
                               Object data)
Perform a platform-specific operation. Throws an IllegalStateException if the initialization failed.

Specified by:
performOperation in interface PlatformProvider
Parameters:
operation - identification of the operation
data - parameters
Returns:
return value
Throws:
IllegalStateException - initialize not yet called or returned false.