public class JacocoAgent extends Object
Premain-Class
.Constructor and Description |
---|
JacocoAgent(AgentOptions options,
IExceptionLogger logger)
Creates a new agent with the given agent options.
|
JacocoAgent(String options,
IExceptionLogger logger)
Creates a new agent with the given agent options string.
|
Modifier and Type | Method and Description |
---|---|
protected IAgentController |
createAgentController()
Create controller implementation as given by the agent options.
|
protected IRuntime |
createRuntime(Instrumentation inst)
Creates the specific coverage runtime implementation.
|
void |
init(Instrumentation inst)
Initializes this agent.
|
static void |
premain(String options,
Instrumentation inst)
This method is called by the JVM to initialize Java agents.
|
void |
shutdown()
Shutdown the agent again.
|
public JacocoAgent(AgentOptions options, IExceptionLogger logger)
options
- agent optionslogger
- logger used by this agentpublic JacocoAgent(String options, IExceptionLogger logger)
options
- agent options as text stringlogger
- logger used by this agentpublic void init(Instrumentation inst) throws Exception
inst
- instrumentation servicesException
- internal startup problemprotected IAgentController createAgentController()
protected IRuntime createRuntime(Instrumentation inst) throws Exception
inst
- instrumentation servicesException
- creation problempublic void shutdown()
public static void premain(String options, Instrumentation inst) throws Exception
options
- agent optionsinst
- instrumentation callback provided by the JVMException
- in case initialization failsCopyright © 2013. All Rights Reserved.