org.glassfish.appclient.client.acc.agent
Class AppClientContainerAgent

java.lang.Object
  extended by org.glassfish.appclient.client.acc.agent.AppClientContainerAgent

public class AppClientContainerAgent
extends java.lang.Object

Agent which prepares the ACC before the VM launches the selected main program.

This agent gathers processes agent arguments, supplied either by the appclient script or the end-user (when entering a java command directly), and processes those arguments. The primary purpose is to:

  1. identify the main class that the Java launcher has decided to start,
  2. create and initialize a new app client container instance, asking the ACC to load and inject the indicated main class in the process if and only if the main class is not the AppClientCommand class.
Then the agent is done. The java launcher and the VM see to it that the main class's main method is invoked.

Author:
tjquinn

Constructor Summary
AppClientContainerAgent()
           
 
Method Summary
static void premain(java.lang.String agentArgsText, java.lang.instrument.Instrumentation inst)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AppClientContainerAgent

public AppClientContainerAgent()
Method Detail

premain

public static void premain(java.lang.String agentArgsText,
                           java.lang.instrument.Instrumentation inst)


Copyright © 2012 GlassFish Community. All Rights Reserved.