Top Description Constructors Methods
org.eclipse.persistence.internal.jpa.deployment

public Class JavaSECMPInitializerAgent

extends Object
Class Inheritance
Imports
java.lang.instrument.*, java.lang.reflect.Field, .InvocationTargetException, .Method

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

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static void
public static void
public static void
premain(String agentArgs, Instrumentation instr)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

JavaSECMPInitializerAgentback to summary
private JavaSECMPInitializerAgent()

Method Detail

initializeFromAgentback to summary
public static void initializeFromAgent(Instrumentation instr) throws Throwable
initializeFromMainback to summary
public static void initializeFromMain(Instrumentation instr) throws Exception
premainback to summary
public static void premain(String agentArgs, Instrumentation instr) throws Throwable