public abstract class ClassEnhancePluginDefine extends AbstractClassEnhancePluginDefine
ConstructorInterceptPoint, InstanceMethodsInterceptPoint and StaticMethodsInterceptPoint If plugin is going to enhance constructors,
instance methods, or both, ClassEnhancePluginDefine will add a field of Object type.| Modifier and Type | Field and Description |
|---|---|
static String |
CONTEXT_ATTR_NAME
New field name.
|
| Constructor and Description |
|---|
ClassEnhancePluginDefine() |
| Modifier and Type | Method and Description |
|---|---|
protected net.bytebuddy.dynamic.DynamicType.Builder<?> |
enhance(net.bytebuddy.description.type.TypeDescription typeDescription,
net.bytebuddy.dynamic.DynamicType.Builder<?> newClassBuilder,
ClassLoader classLoader,
EnhanceContext context)
Begin to define how to enhance class.
|
define, enhanceClass, getConstructorsInterceptPoints, getInstanceMethodsInterceptPoints, getStaticMethodsInterceptPoints, isBootstrapInstrumentation, witnessClassespublic static final String CONTEXT_ATTR_NAME
protected net.bytebuddy.dynamic.DynamicType.Builder<?> enhance(net.bytebuddy.description.type.TypeDescription typeDescription,
net.bytebuddy.dynamic.DynamicType.Builder<?> newClassBuilder,
ClassLoader classLoader,
EnhanceContext context)
throws PluginException
enhance in class AbstractClassEnhancePluginDefinetypeDescription - target class descriptionnewClassBuilder - byte-buddy's builder to manipulate class bytecode.PluginExceptionCopyright © 2019 The Apache Software Foundation. All rights reserved.