public class AnnotatedAgent extends Object
@Agent.| Constructor and Description |
|---|
AnnotatedAgent(AgentConfiguration configuration)
Validates annotations and prepares all objects for execution.
|
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
getAgentClass() |
Object |
getAgentInstance() |
Method |
getRunMethod() |
void |
runAgentTask()
Invokes the method annotated as
@Run for the agent. |
public AnnotatedAgent(AgentConfiguration configuration)
configuration - the AgentConfiguration to be parsedInvalidClassException - if any exception regarding a reflective operation (e.g.:
class or method not found) occurspublic void runAgentTask()
@Run for the agent.public Class<?> getAgentClass()
public Method getRunMethod()
public Object getAgentInstance()
Copyright © 2021. All rights reserved.