Class ReflectionIntrospectionConfiguration.Description
java.lang.Object
io.micronaut.reflection.ReflectionIntrospectionConfiguration.Description
- Enclosing class:
ReflectionIntrospectionConfiguration
@Internal
@EachProperty(value="reflective",
list=true)
public static final class ReflectionIntrospectionConfiguration.Description
extends Object
The types matching a set of patterns, and the
Introspected members the shared introspector
describes them with.
A member left unset is left to its default, which is what the reflective description already applies,
and a type carrying Introspected of its own keeps what it declares: a pattern names types in
bulk, and does not displace what one of them says of itself.
Introspected.includedAnnotations() is not among the members: the processor uses it to choose
the classes to scan for the packages Introspected.packages() names, not to filter the properties
its javadoc describes, so configuring it would change nothing.
- Since:
- 5.2.0
- Author:
- Denis Stepanov
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classAn annotation the properties carrying it are indexed by. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionWhat makes a property.@Nullable BooleanWhether the properties carry their annotations.The annotations that leave a property out.The names of the properties to leave out.The names of the only properties to describe.The annotations to index the properties by.getTypes()The patterns of the types this describes.How visible a member has to be to make a property.voidsetAccessKind(@Nullable List<Introspected.AccessKind> accessKind) What makes a property, in the order it is preferred where a type has both.voidsetAnnotationMetadata(@Nullable Boolean annotationMetadata) Whether the properties carry the annotations of their members, which they do by default.voidsetExcludedAnnotations(@Nullable List<String> excludedAnnotations) The names of the annotations that leave a property out, none by default.voidsetExcludes(@Nullable List<String> excludes) The names of the properties to leave out, none by default.voidsetIncludes(@Nullable List<String> includes) The names of the only properties to describe, all of them by default.voidsetIndexed(@Nullable List<ReflectionIntrospectionConfiguration.Description.Indexed> indexed) The annotations to index the properties by, so thatBeanIntrospection.getIndexedProperties(Class)finds them; none by default.voidThe patterns of the types this describes, a pattern being a class name where*stands for any sequence of characters.voidsetVisibility(@Nullable List<Introspected.Visibility> visibility) How visible a member has to be to make a property.
-
Constructor Details
-
Description
public Description()Creates the description; it is instantiated by the context.
-
-
Method Details
-
getTypes
-
setTypes
The patterns of the types this describes, a pattern being a class name where*stands for any sequence of characters. The types matching them are allowed to be described reflectively, asReflectionIntrospectionConfiguration.setAllowReflection(List)allows them.- Parameters:
types- The patterns
-
getAccessKind
What makes a property.- Returns:
- The access kinds
-
setAccessKind
What makes a property, in the order it is preferred where a type has both.- Parameters:
accessKind- The access kinds,Introspected.AccessKind.METHODby default- See Also:
-
getVisibility
How visible a member has to be to make a property.- Returns:
- The visibilities
-
setVisibility
How visible a member has to be to make a property.- Parameters:
visibility- The visibilities,Introspected.Visibility.DEFAULTby default- See Also:
-
getIncludes
-
setIncludes
-
getExcludes
-
setExcludes
-
getExcludedAnnotations
-
setExcludedAnnotations
-
getAnnotationMetadata
Whether the properties carry their annotations.- Returns:
- Whether the properties carry their annotations,
nullwhen it is not configured
-
setAnnotationMetadata
Whether the properties carry the annotations of their members, which they do by default.- Parameters:
annotationMetadata- Whether the properties carry their annotations- See Also:
-
getIndexed
The annotations to index the properties by.- Returns:
- The annotations to index the properties by
-
setIndexed
public void setIndexed(@Nullable List<ReflectionIntrospectionConfiguration.Description.Indexed> indexed) The annotations to index the properties by, so thatBeanIntrospection.getIndexedProperties(Class)finds them; none by default.- Parameters:
indexed- The annotations- See Also:
-