Interface Aggregators


public interface Aggregators
A collection of some basic method, field, and constructor aggregators for use in a ReflectionInjector
  • Field Details

    • ANNOTATED_FIELDS

      static final Function<Class<?>, Collection<Field>> ANNOTATED_FIELDS
      An aggregator that produces all fields of a given class that are annotated with an injection annotation. This includes static fields, fields from superclasses, and private, protected, or package-protected fields.
    • ALL_FIELDS

      static final Function<Class<?>, Collection<Field>> ALL_FIELDS
      An aggregator that produces all fields of a given class. This includes static fields, fields from superclasses, and private, protected, or package-protected fields.
    • ANNOTATED_METHODS

      static final Function<Class<?>, Collection<Method>> ANNOTATED_METHODS
      An aggregator that produces all methods of a given class that are annotated with an injection annotation (or that have every parameter annotated with an injection annotation). This includes static methods, methods from superclasses, and private, protected, or package-protected methods. This DOES NOT include non-annotated methods with no parameters.
    • ALL_METHODS

      static final Function<Class<?>, Collection<Method>> ALL_METHODS
      An aggregator that produces all methods of a given class. This includes static methods, methods from superclasses, and private, protected, or package-protected methods.
    • ANNOTATED_CONSTRUCTORS

      static final Function<Class<?>, Collection<Constructor<?>>> ANNOTATED_CONSTRUCTORS
      An aggregator that produces all constructors of a given class that are annotated with an injection annotation (or that have every parameter annotated with an injection annotation). This includes non-annotated constructors with no parameters.
    • ALL_CONSTRUCTORS

      static final Function<Class<?>, Collection<Constructor<?>>> ALL_CONSTRUCTORS
      An aggregator that produces all constructors of a given class.