Class JCOReflector


  • public class JCOReflector
    extends java.lang.Object
    Main class to manage JCOReflector features
    • Constructor Summary

      Constructors 
      Constructor Description
      JCOReflector()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String[] getCommandLineArgs()
      Get command-line arguments
      static boolean getConsoleLog()
      Get console log
      static boolean getDebug()
      Get Debug state
      static boolean getInitialized()
      Return if JCOReflector is initialized
      static boolean getInstanceByAssembly()
      Get InstanceByAssembly state
      static java.lang.String getLogFilename()
      Get Logging filename
      static boolean getLogging()
      Get Logging state
      static boolean getUseFullAssemblyName()
      Get UseFullAssemblyName state
      static void init​(java.lang.String[] args)
      Initialize JCOReflector runtime
      static boolean initRT​(java.lang.String pathToUse)
      Invoke this method to initialize JCOBridge runtime to a user defined folder
      static boolean initTempRT()
      Invoke this method to initialize JCOBridge runtime to a temporary folder
      static void registerPath​(java.lang.String path)
      Register search path within the engine
      static void setCommandLineArgs​(java.lang.String[] args)
      Set command-line arguments
      static void setConsoleLog​(boolean isConsoleLog)
      Set console log
      static void setDebug​(boolean isDebug)
      Set Debug state
      static void setInstanceByAssembly​(boolean isMultiInstance)
      Set JCOBridge instance by assembly state
      static void setLogFilename​(java.lang.String loggingFilename)
      Set Logging filename
      static void setLogging​(boolean isLogging)
      Set Logging state
      static void setUseFullAssemblyName​(boolean useFullname)
      Set UseFullAssemblyName state
      static void writeLog​(java.lang.String msg)
      Write a string to JCOReflector log
      static void writeLog​(java.lang.String format, java.lang.Object... args)
      Write a log to JCOReflector log
      static void writeLog​(java.lang.Throwable t)
      Write exception to JCOReflector log
      • Methods inherited from class java.lang.Object

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

      • JCOReflector

        public JCOReflector()
    • Method Detail

      • getInitialized

        public static boolean getInitialized()
        Return if JCOReflector is initialized
        Returns:
        true if JCOReflector is initialized
      • getLogging

        public static boolean getLogging()
        Get Logging state
        Returns:
        the logging state
      • setLogging

        public static void setLogging​(boolean isLogging)
        Set Logging state

        Parameters:
        isLogging - the new logging state
      • getLogFilename

        public static java.lang.String getLogFilename()
        Get Logging filename
        Returns:
        the log filename
      • setLogFilename

        public static void setLogFilename​(java.lang.String loggingFilename)
        Set Logging filename

        If the logging operations are started on a JCOBridge instance, it is not possible to change the name during runtime.

        Parameters:
        loggingFilename - the new log filename
      • getUseFullAssemblyName

        public static boolean getUseFullAssemblyName()
        Get UseFullAssemblyName state
        Returns:
        the UseFullAssemblyName state
      • setUseFullAssemblyName

        public static void setUseFullAssemblyName​(boolean useFullname)
        Set UseFullAssemblyName state

        Set only on startup

        Parameters:
        useFullname - the new UseFullAssemblyName state
      • getDebug

        public static boolean getDebug()
        Get Debug state
        Returns:
        the debug state
      • setDebug

        public static void setDebug​(boolean isDebug)
        Set Debug state
        Parameters:
        isDebug - the new debug state
      • getConsoleLog

        public static boolean getConsoleLog()
        Get console log
        Returns:
        the console log state
      • setConsoleLog

        public static void setConsoleLog​(boolean isConsoleLog)
        Set console log
        Parameters:
        isConsoleLog - the new console log state
      • getInstanceByAssembly

        public static boolean getInstanceByAssembly()
        Get InstanceByAssembly state
        Returns:
        the JCOBridge state
      • setInstanceByAssembly

        public static void setInstanceByAssembly​(boolean isMultiInstance)
        Set JCOBridge instance by assembly state

        It can be applied only before any operation

        Parameters:
        isMultiInstance - the new InstanceByAssembly state
      • getCommandLineArgs

        public static java.lang.String[] getCommandLineArgs()
        Get command-line arguments

        Returns:
        the command-line arguments
      • setCommandLineArgs

        public static void setCommandLineArgs​(java.lang.String[] args)
        Set command-line arguments

        It can be applied only before any operation

        Parameters:
        args - the command-line arguments
      • registerPath

        public static void registerPath​(java.lang.String path)
        Register search path within the engine

        It can be applied only before any operation

        Parameters:
        path - the path to register
      • writeLog

        public static void writeLog​(java.lang.Throwable t)
        Write exception to JCOReflector log
        Parameters:
        t - Throwable to log
      • writeLog

        public static void writeLog​(java.lang.String format,
                                    java.lang.Object... args)
        Write a log to JCOReflector log
        Parameters:
        format - format String to log
        args - format arguments
      • writeLog

        public static void writeLog​(java.lang.String msg)
        Write a string to JCOReflector log
        Parameters:
        msg - message to log
      • init

        public static void init​(java.lang.String[] args)
        Initialize JCOReflector runtime
        Parameters:
        args - command-line arguments
      • initTempRT

        public static boolean initTempRT()
        Invoke this method to initialize JCOBridge runtime to a temporary folder
        Returns:
        true if the runtime was initialized, otherwise see JCOReflector.log to check possible error conditions
      • initRT

        public static boolean initRT​(java.lang.String pathToUse)
        Invoke this method to initialize JCOBridge runtime to a user defined folder
        Parameters:
        pathToUse - The user defined path used for JCOBridge runtime
        Returns:
        true if the runtime was initialized, otherwise see JCOReflector.log to check possible error conditions