org.gudy.azureus2.platform.macosx
Class NativeInvocationBridge

java.lang.Object
  extended by org.gudy.azureus2.platform.macosx.NativeInvocationBridge
Direct Known Subclasses:
CocoaJavaBridge

public abstract class NativeInvocationBridge
extends java.lang.Object

Performs PlatformManager and platform-specific tasks using bridges like Cocoa-Java -> ObjC

The methods supplied are intended to reflect those that can be dealt with a way other than OSAScript. Ensure that the method signatures match those of PlatformManagerImpl, but they should generally return a boolean (false for failure).

Version:
1.0

Constructor Summary
protected NativeInvocationBridge()
           
 
Method Summary
protected  void dispose()
          Disposes system resources
protected static boolean hasSharedInstance()
           
protected abstract  boolean isEnabled()
          Gets whether the invocation bridge is available for use
protected  boolean performRecoverableFileDelete(java.io.File path)
           
protected static NativeInvocationBridge sharedInstance()
          Gets the singleton
protected  boolean showInFinder(java.io.File path, java.lang.String fb)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NativeInvocationBridge

protected NativeInvocationBridge()
Method Detail

sharedInstance

protected static final NativeInvocationBridge sharedInstance()
Gets the singleton

Returns:
The NativeInvocationBridge singleton

hasSharedInstance

protected static final boolean hasSharedInstance()

performRecoverableFileDelete

protected boolean performRecoverableFileDelete(java.io.File path)
See Also:
PlatformManager#performRecoverableFileDelete(java.io.File)

showInFinder

protected boolean showInFinder(java.io.File path,
                               java.lang.String fb)
See Also:
PlatformManagerImpl.showInFinder(java.io.File)

isEnabled

protected abstract boolean isEnabled()

Gets whether the invocation bridge is available for use

This method is used to anticipate scenarios such as where the bridge will fail due to missing classpaths


dispose

protected void dispose()
Disposes system resources