@HashCodeAndEqualsPlugin.Enhance protected static class AccessControllerPlugin.Initializer.WithProperty extends AccessControllerPlugin.Initializer
AccessControllerPlugin.Initializer.WithoutProperty, AccessControllerPlugin.Initializer.WithProperty
ByteCodeAppender.Compound, ByteCodeAppender.Simple, ByteCodeAppender.Size
Modifier | Constructor and Description |
---|---|
protected |
WithProperty(TypeDescription instrumentedType,
String name,
String property)
Creates an initializer that uses a property to determine if the access controller should be actually used even if it is available.
|
Modifier and Type | Method and Description |
---|---|
protected int |
onAccessController(MethodVisitor methodVisitor)
Invoked to determine if the access controller should be used after the class was found.
|
apply
protected WithProperty(TypeDescription instrumentedType, String name, String property)
instrumentedType
- The instrumented type.name
- The name of the field to determine the use of access controller dispatch.property
- The name of the property.protected int onAccessController(MethodVisitor methodVisitor)
AccessControllerPlugin.Initializer
onAccessController
in class AccessControllerPlugin.Initializer
methodVisitor
- The method visitor to dispatch to.Copyright © 2014–2024. All rights reserved.