src/main/java/org/moskito/javaagent/LightTransformationAgent.java
/**
	 * JVM hook to dynamically load javaagent at runtime.
	 * The agent class may have an agentmain method for use when the agent is
	 * started after VM startup.
	 *
	 * @param args
	 * 		arguments
	 * @param inst
	 * 		{@link Instrumentation} instance
	 * @throws Exception
	 * 		in scope of error
	 */
JVM hook to dynamically load javaagent at runtime.
The agent class may have an agentmain method for use when the agent is
started after VM startup.

@param args
arguments
@param inst
Instrumentation instance
@throws Exception
in scope of error
JVM hook to dynamically load javaagent at runtime . The agent class may have an agentmain method for use when the agent is started after VM startup . @param args arguments @param inst Instrumentation instance @throws Exception in scope of error
public static void agentmain(String args, Instrumentation inst) throws Exception {
		LOG.info("agentmain method invoked with args: {} and inst: {}", args, inst);
		inst.addTransformer(new LightTransformationAgent());
		startMoskitoBackend();
	}
public static void agentmain ( String args , Instrumentation inst ) throws Exception { LOG . info ( "agentmain method invoked with args: {} and inst: {}" , args , inst ) ; inst . addTransformer ( new LightTransformationAgent ( ) ) ; startMoskitoBackend ( ) ; }
JVM hook to dynamically load javaagent at runtime.
JVM hook to dynamically load javaagent at runtime .