Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.virtuosotechnologies.lib.platform
Interface PlatformProvider  view PlatformProvider download PlatformProvider.java

All Known Implementing Classes:
MacOSXPlatformProvider

public interface PlatformProvider

Platform-specific providers need to implement this interface. This is here as a buffer so that PlatformUtils doesn't need to know anything about the implementation classes for platform providers.


Method Summary
 boolean initialize()
          Initialize this provider.
 java.lang.Object performOperation(java.lang.String operation, java.lang.Object data)
          Perform a platform-specific operation.
 

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. This is called by the platform mechanism when it starts up, and should not be called by clients.


performOperation

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