Class InvocationHandlerAdapter.ForInstance

    • Field Detail

      • PREFIX

        private static final java.lang.String PREFIX
        The prefix for field that are created for storing the instrumented value.
        See Also:
        Constant Field Values
      • invocationHandler

        protected final java.lang.reflect.InvocationHandler invocationHandler
        The invocation handler to which method interceptions are to be delegated.
    • Constructor Detail

      • ForInstance

        protected ForInstance​(java.lang.String fieldName,
                              boolean cached,
                              boolean privileged,
                              Assigner assigner,
                              java.lang.reflect.InvocationHandler invocationHandler)
        Creates a new invocation handler adapter for delegating invocations to an invocation handler that is stored in a static field.
        Parameters:
        fieldName - The name of the field.
        cached - Determines if the Method instances that are handed to the intercepted methods are cached in static fields.
        privileged - Determines if the Method instances are retrieved by using an AccessController.
        assigner - The assigner to apply when defining this implementation.
        invocationHandler - The invocation handler to which all method calls are delegated.