コード例 #1
0
  /**
   * INTERNAL: Should be called only by the agent. (when weaving classes) If succeeded return true,
   * false otherwise.
   */
  protected static void initializeFromAgent(Instrumentation instrumentation) throws Exception {
    AbstractSessionLog.getLog().setLevel(JavaSECMPInitializer.getTopLinkLoggingLevel());

    // Squirrel away the instrumentation for later
    globalInstrumentation = instrumentation;
    // Create JavaSECMPInitializer singleton
    javaSECMPInitializer = new JavaSECMPInitializer();
    // Initialize it
    javaSECMPInitializer.initialize(new HashMap(), javaSECMPInitializer);
  }
コード例 #2
0
 /**
  * INTERNAL: Get the singleton entityContainer.
  *
  * @return EnityContainer
  */
 public static synchronized JavaSECMPInitializer getJavaSECMPInitializer() {
   if (javaSECMPInitializer == null) {
     javaSECMPInitializer = new JavaSECMPInitializer();
   }
   AbstractSessionLog.getLog().setLevel(JavaSECMPInitializer.getTopLinkLoggingLevel());
   return javaSECMPInitializer;
 }