@HashCodeAndEqualsPlugin.Enhance protected abstract static class AccessControllerPlugin.Initializer extends Object implements ByteCodeAppender
java.security.AccessController is available.| Modifier and Type | Class and Description | 
|---|---|
| protected static class  | AccessControllerPlugin.Initializer.WithoutPropertyAn initializer that always uses the access controller if it is available. | 
| protected static class  | AccessControllerPlugin.Initializer.WithPropertyAn initializer that uses a property to determine if the access controller should be actually used even if it is available. | 
ByteCodeAppender.Compound, ByteCodeAppender.Simple, ByteCodeAppender.Size| Modifier | Constructor and Description | 
|---|---|
| protected  | Initializer(TypeDescription instrumentedType,
           String name)Creates a new initializer. | 
| Modifier and Type | Method and Description | 
|---|---|
| ByteCodeAppender.Size | apply(MethodVisitor methodVisitor,
     Implementation.Context implementationContext,
     MethodDescription instrumentedMethod)Applies this byte code appender to a type creation process. | 
| protected abstract int | onAccessController(MethodVisitor methodVisitor)Invoked to determine if the access controller should be used after the class was found. | 
protected Initializer(TypeDescription instrumentedType, String name)
instrumentedType - The instrumented type.name - The name of the field to determine the use of access controller dispatch.public ByteCodeAppender.Size apply(MethodVisitor methodVisitor, Implementation.Context implementationContext, MethodDescription instrumentedMethod)
apply in interface ByteCodeAppendermethodVisitor - The method visitor to which the byte code appender writes its code to.implementationContext - The implementation context of the current type creation process.instrumentedMethod - The method that is the target of the instrumentation.protected abstract int onAccessController(MethodVisitor methodVisitor)
methodVisitor - The method visitor to dispatch to.Copyright © 2014–1970. All rights reserved.