Interface Installable
-
- All Known Implementing Classes:
DataAccessor
public interface InstallableDiSCo interceptions are broken apart by category e.g. Web, AWS, concurrency support, etc. This interface describes a hook which can be installed, and all DiSCo support 'plugins' adhere to it
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidhandleArguments(java.util.List<java.lang.String> args)Given a list of command line arguments, handle them in whatever way makes sense for the implementing class.net.bytebuddy.agent.builder.AgentBuilderinstall(net.bytebuddy.agent.builder.AgentBuilder agentBuilder)Install the necessary hooks for this piece of DiSCo functionality.
-
-
-
Method Detail
-
install
net.bytebuddy.agent.builder.AgentBuilder install(net.bytebuddy.agent.builder.AgentBuilder agentBuilder)
Install the necessary hooks for this piece of DiSCo functionality.- Parameters:
agentBuilder- - an AgentBuilder to append instructions to- Returns:
- - the same AgentBuilder instance, for continuation/chaining, or null to prevent installation of the agentBuilder, in case the Installable instance does not require this instrumentation to take place.
-
handleArguments
default void handleArguments(java.util.List<java.lang.String> args)
Given a list of command line arguments, handle them in whatever way makes sense for the implementing class. This should ultimately be deprecated in favor of a more structured API, where the key-value pairs are expressed in a structured form, instead of expecting Installables to parse a list of raw strings.- Parameters:
args- command line arguments in the form ["key1=value1", "key2=value2,value3", "value4"]
-
-