com.uwyn.rife.continuations.instrument
Class ContinuationsAgent

java.lang.Object
  extended by com.uwyn.rife.continuations.instrument.ContinuationsAgent

public class ContinuationsAgent
extends Object

Provides a continuations instrumentation agent that will modify the bytecode of the classes that are loaded. It enhances the classes with continuations capabilities that are otherwise provided by a class-loader.

To activate the agent you need to execute the Java application with the proper argument, for example:

java -javaagent:/path/to/rife-continuations-agent-1.6-jdk15.jar=com.your.ContinuationConfigInstrumentClass com.your.mainClass

When the agent is active the BasicContinuableClassLoader will automatically be disabled to ensure that they are not conflicting with each other. The agent is packaged in its own jar file which should correspond to the RIFE/Continuations version that you are using in your application.

It is possible to debug the bytecode instrumentation by using the functionatilies provided by the InitialTransformer and FinalTransformer transformers that are included in this agent.

Since:
1.6
Version:
$Revision: 3811 $
Author:
Geert Bevin (gbevin[remove] at uwyn dot com)

Field Summary
static String AGENT_ACTIVE_PROPERTY
           
 
Constructor Summary
ContinuationsAgent()
           
 
Method Summary
static void premain(String agentArguments, Instrumentation instrumentation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AGENT_ACTIVE_PROPERTY

public static final String AGENT_ACTIVE_PROPERTY
See Also:
Constant Field Values
Constructor Detail

ContinuationsAgent

public ContinuationsAgent()
Method Detail

premain

public static void premain(String agentArguments,
                           Instrumentation instrumentation)


Copyright © 2001-2007 Uwyn sprl/bvba. All Rights Reserved.