Package com.biglybt.platform.macosx
Class NativeInvocationBridge
- java.lang.Object
-
- com.biglybt.platform.macosx.NativeInvocationBridge
-
- Direct Known Subclasses:
CocoaJavaBridge
,NativeInvocationBridge.DummyBridge
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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
NativeInvocationBridge.DummyBridge
A NativeInvocationBridge that does nothing; isEnabled() always returns false.
-
Field Summary
Fields Modifier and Type Field Description private static NativeInvocationBridge
instance
-
Constructor Summary
Constructors Modifier Constructor Description protected
NativeInvocationBridge()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
dispose()
Disposes system resourcesprotected static boolean
hasSharedInstance()
protected abstract boolean
isEnabled()
Gets whether the invocation bridge is available for useprotected boolean
performRecoverableFileDelete(java.io.File path)
protected static NativeInvocationBridge
sharedInstance()
Gets the singletonprotected boolean
showInFinder(java.io.File path, java.lang.String fb)
-
-
-
Field Detail
-
instance
private static NativeInvocationBridge instance
-
-
Method Detail
-
sharedInstance
protected static NativeInvocationBridge sharedInstance()
Gets the singleton- Returns:
- The NativeInvocationBridge singleton
-
hasSharedInstance
protected static 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)
-
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
-
-