public class DataAccessor extends java.lang.Object implements Installable
| Modifier and Type | Class and Description |
|---|---|
static class |
DataAccessor.ExceptionSafety
An Advice class to wrap generated methods in catch-all exception safety.
|
| Modifier | Constructor and Description |
|---|---|
protected |
DataAccessor(net.bytebuddy.matcher.ElementMatcher<net.bytebuddy.description.type.TypeDescription> typeImplementingAccessor,
net.bytebuddy.matcher.ElementMatcher<net.bytebuddy.description.type.TypeDescription> typesImplementingAccessMethods,
java.lang.Class<?> accessor)
Protected constructor for factory access
|
| Modifier and Type | Method and Description |
|---|---|
static DataAccessor |
forClassNamed(java.lang.String className,
java.lang.Class<?> accessor)
Factory method to create a DataAccessor which allows access to corresponding methods of the given exact class
|
static DataAccessor |
forConcreteSubclassesOfInterface(java.lang.String interfaceName,
java.lang.Class<?> accessor)
Factory method to create a DataAccessor which allows access to the corresponding methods of any concrete subclasses of the given interface
|
net.bytebuddy.agent.builder.AgentBuilder |
install(net.bytebuddy.agent.builder.AgentBuilder agentBuilder)
Install the necessary hooks for this piece of DiSCo functionality.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandleArgumentsprotected DataAccessor(net.bytebuddy.matcher.ElementMatcher<net.bytebuddy.description.type.TypeDescription> typeImplementingAccessor,
net.bytebuddy.matcher.ElementMatcher<net.bytebuddy.description.type.TypeDescription> typesImplementingAccessMethods,
java.lang.Class<?> accessor)
typeImplementingAccessor - ElementMatcher describing the class to implement the accessor, usually some lowest-common denominator base or interfaceaccessor - Accessor interface declaring the methods to use for accesspublic static DataAccessor forClassNamed(java.lang.String className, java.lang.Class<?> accessor)
className - the exact className to project data access ontoaccessor - the accessor defining the access methodspublic static DataAccessor forConcreteSubclassesOfInterface(java.lang.String interfaceName, java.lang.Class<?> accessor)
interfaceName - the name of the interface, for which implementing classes will have access methods definedaccessor - the accessor defining the access methodspublic net.bytebuddy.agent.builder.AgentBuilder install(net.bytebuddy.agent.builder.AgentBuilder agentBuilder)
install in interface InstallableagentBuilder - - an AgentBuilder to append instructions to