Class JavaSECMPInitializerAgent


  • public class JavaSECMPInitializerAgent
    extends java.lang.Object
    This agent is intended to be run prior to start up on a CMP3 JavaSE application. It gets the globalInstrumentation and makes it available to EclipseLink's initialization code. There are two kinds of initialization. Normally, initialization occurs through reflective creation and invocation of EclipseLink JavaSECMPInitializer. It is possible to run it with the "main" argument to the agent in which case it will simply try to set the globalInstrumentation field on the JavaSECMPInitializer. This type of initialization is useful when debugging, but imposes some restrictions on the user. One such restriction is that no domain classes that use lazy loading may be references in any way other than reflective in the application
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void initializeFromAgent​(java.lang.instrument.Instrumentation instr)  
      static void initializeFromMain​(java.lang.instrument.Instrumentation instr)  
      static void premain​(java.lang.String agentArgs, java.lang.instrument.Instrumentation instr)  
      • Methods inherited from class java.lang.Object

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

      • JavaSECMPInitializerAgent

        public JavaSECMPInitializerAgent()
    • Method Detail

      • premain

        public static void premain​(java.lang.String agentArgs,
                                   java.lang.instrument.Instrumentation instr)
                            throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • initializeFromAgent

        public static void initializeFromAgent​(java.lang.instrument.Instrumentation instr)
                                        throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • initializeFromMain

        public static void initializeFromMain​(java.lang.instrument.Instrumentation instr)
                                       throws java.lang.Exception
        Throws:
        java.lang.Exception