SearchStrategy enum
Which contexts ConditionalOnBean and ConditionalOnMissingBean search for beans, when contexts have parents.
Only applications that build a hierarchy of contexts (a parent with shared beans, children per module) need it; the default, all, is right otherwise.
Spring (Java): SearchStrategy.
Values
- current → const SearchStrategy
-
Only the context being built, not its parents.
- ancestors → const SearchStrategy
-
Only the parent contexts, all the way up, not the context being built.
- all → const SearchStrategy
-
The context being built and all its parents. The default.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
SearchStrategy> - A constant List of the values in this enum, in order of their declaration.