Class JCOBridgeInstance
- java.lang.Object
-
- org.mases.jcobridge.netreflection.JCOBridgeInstance
-
- All Implemented Interfaces:
IJCEventLog
public final class JCOBridgeInstance extends java.lang.Object implements IJCEventLog
Manages all instances ofJCOBridge
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
EventLog(java.lang.String msg)
Invoked when an event happens.void
FusionLog(java.lang.String msg)
Invoked when a fusion event happens.static JCOBridge
getInstance(java.lang.String assemblyName)
Returns theJCOBridge
instance associated to the assmebly.static void
registerPath(java.lang.String path)
Register search path within the enginestatic <T extends IJCOBridgeReflected>
java.lang.ObjecttoObjectFromArray(T[] input)
static java.lang.Throwable
translateException(JCNativeException ne)
-
-
-
Method Detail
-
FusionLog
public void FusionLog(java.lang.String msg)
Invoked when a fusion event happens.- Specified by:
FusionLog
in interfaceIJCEventLog
- Parameters:
msg
- The message associated
-
EventLog
public void EventLog(java.lang.String msg)
Invoked when an event happens.- Specified by:
EventLog
in interfaceIJCEventLog
- Parameters:
msg
- The message associated
-
registerPath
public static void registerPath(java.lang.String path)
Register search path within the engine- Parameters:
path
- the path to register
-
getInstance
public static JCOBridge getInstance(java.lang.String assemblyName)
Returns theJCOBridge
instance associated to the assmebly.Until now a single global instance is created
- Parameters:
assemblyName
- The name of the assembly to bind the instance- Returns:
- An
JCOBridge
instance
-
toObjectFromArray
public static <T extends IJCOBridgeReflected> java.lang.Object toObjectFromArray(T[] input)
-
translateException
public static java.lang.Throwable translateException(JCNativeException ne) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-