Class JCOBridgeInstance

  • All Implemented Interfaces:
    org.mases.jcobridge.IJCEventLog

    public final class JCOBridgeInstance
    extends java.lang.Object
    implements org.mases.jcobridge.IJCEventLog
    Manages all instances of JCOBridge
    • 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 org.mases.jcobridge.JCOBridge getInstance​(java.lang.String assemblyName)
      Returns the JCOBridge instance associated to the assmebly.
      static void registerPath​(java.lang.String path)
      Register search path within the engine
      static <T extends IJCOBridgeReflected>
      java.lang.Object
      toObjectFromArray​(T[] input)  
      static java.lang.Throwable translateException​(org.mases.jcobridge.JCNativeException ne)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • FusionLog

        public void FusionLog​(java.lang.String msg)
        Invoked when a fusion event happens.
        Specified by:
        FusionLog in interface org.mases.jcobridge.IJCEventLog
        Parameters:
        msg - The message associated
      • EventLog

        public void EventLog​(java.lang.String msg)
        Invoked when an event happens.
        Specified by:
        EventLog in interface org.mases.jcobridge.IJCEventLog
        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 org.mases.jcobridge.JCOBridge getInstance​(java.lang.String assemblyName)
        Returns the JCOBridge 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​(org.mases.jcobridge.JCNativeException ne)
                                                      throws java.lang.Throwable
        Throws:
        java.lang.Throwable