Class AccessControllerPlugin.Initializer.WithProperty

    • Field Detail

      • property

        private final java.lang.String property
        The name of the property.
    • Constructor Detail

      • WithProperty

        protected WithProperty​(TypeDescription instrumentedType,
                               java.lang.String name,
                               java.lang.String property)
        Creates an initializer that uses a property to determine if the access controller should be actually used even if it is available.
        Parameters:
        instrumentedType - The instrumented type.
        name - The name of the field to determine the use of access controller dispatch.
        property - The name of the property.
    • Method Detail

      • onAccessController

        protected int onAccessController​(org.objectweb.asm.MethodVisitor methodVisitor)
        Description copied from class: AccessControllerPlugin.Initializer
        Invoked to determine if the access controller should be used after the class was found.
        Specified by:
        onAccessController in class AccessControllerPlugin.Initializer
        Parameters:
        methodVisitor - The method visitor to dispatch to.
        Returns:
        The size of the stack required to implement the implemented dispatch.