Package rife.continuations.instrument
Class ContinuationsAgent
java.lang.Object
rife.continuations.instrument.ContinuationsAgent
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/rife2-[version]-agent-continuations.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 RIFE2 version that you are using in your application.
It is possible to debug the bytecode instrumentation by using the
functionalities provided by the InitialTransformer
and
FinalTransformer
transformers that are included in this agent.
- Since:
- 1.0
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
premain
(String agentArguments, Instrumentation instrumentation)
-
Field Details
-
AGENT_ACTIVE_PROPERTY
- See Also:
-
-
Constructor Details
-
ContinuationsAgent
public ContinuationsAgent()
-
-
Method Details
-
premain
-