Interface Aggregators
public interface Aggregators
A collection of some basic method, field, and constructor aggregators for use in a
ReflectionInjector-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Function<Class<?>, Collection<Constructor<?>>> An aggregator that produces all constructors of a given class.static final Function<Class<?>, Collection<Field>> An aggregator that produces all fields of a given class.static final Function<Class<?>, Collection<Method>> An aggregator that produces all methods of a given class.static final Function<Class<?>, Collection<Constructor<?>>> 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).static final Function<Class<?>, Collection<Field>> An aggregator that produces all fields of a given class that are annotated with an injection annotation.static final Function<Class<?>, Collection<Method>> 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).
-
Field Details
-
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
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
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
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
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
An aggregator that produces all constructors of a given class.
-