Class AgentBuilder.RedefinitionStrategy.Collector

    • Field Detail

      • types

        protected final List<Class<?>> types
        All types that were collected for redefinition.
    • Constructor Detail

      • Collector

        protected Collector()
        Creates a new collector.
    • Method Detail

      • consider

        protected void consider​(AgentBuilder.RawMatcher matcher,
                                AgentBuilder.Listener listener,
                                TypeDescription typeDescription,
                                Class<?> type,
                                JavaModule module)
        Does consider the retransformation or redefinition of a loaded type without a loaded type representation.
        Parameters:
        matcher - The type matcher to apply.
        listener - The listener to apply during the consideration.
        typeDescription - The type description of the type being considered.
        type - The loaded type being considered.
        module - The type's Java module or null if the current VM does not support modules.
      • consider

        protected void consider​(AgentBuilder.RawMatcher matcher,
                                AgentBuilder.Listener listener,
                                TypeDescription typeDescription,
                                Class<?> type,
                                Class<?> classBeingRedefined,
                                JavaModule module,
                                boolean unmodifiable)
        Does consider the retransformation or redefinition of a loaded type.
        Parameters:
        matcher - A type matcher to apply.
        listener - The listener to apply during the consideration.
        typeDescription - The type description of the type being considered.
        type - The loaded type being considered.
        classBeingRedefined - The loaded type being considered or null if it should be considered non-available.
        module - The type's Java module or null if the current VM does not support modules.
        unmodifiable - true if the current type should be considered unmodifiable.
      • include

        protected void include​(List<Class<?>> types)
        Includes all the supplied types in this collector.
        Parameters:
        types - The types to include.