Class AgentBridge


  • public final class AgentBridge
    extends java.lang.Object
    This implementation of CollectionFactory will only be used if the agent-bridge is being used by an application and the agent is NOT being loaded. Thus, it is unlikely that the objects created by this implementation are going to receive much use. So methods in this implementation do not need to implement all functional requirements of the methods in the interface, but they should not break under low use.
    • Field Detail

      • API_CLASSES

        public static final java.lang.Class<?>[] API_CLASSES
        Calls to methods on these classes will automatically be logged at FINEST.
      • publicApi

        public static volatile PublicApi publicApi
        The agent sets the actual api implementation when it starts up.
      • privateApi

        public static volatile PrivateApi privateApi
      • jmxApi

        public static volatile JmxApi jmxApi
      • asyncApi

        public static volatile AsyncApi asyncApi
      • cloud

        public static volatile CloudApi cloud
      • agentHandler

        public static volatile java.lang.reflect.InvocationHandler agentHandler
        This is the InvocationHandler used by the old pointcuts.
      • agent

        public static volatile Agent agent
      • currentApiSource

        public static volatile java.lang.ThreadLocal<WeavePackageType> currentApiSource
        This thread local is set directly before a "tracked" API call and unset after the call completes. This allows us to easily track the source of an API call (e.g. - internal weave module, FIT module, custom code, etc). This data is set from AgentPreprocessors.wrapApiCallsForSupportability().
    • Constructor Detail

      • AgentBridge

        public AgentBridge()
    • Method Detail

      • getAgent

        public static Agent getAgent()