Package io.smallrye.beanbag
Interface DependencyFilter
public interface DependencyFilter
A filter which can be used to reject dependency candidates.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault DependencyFilterand(DependencyFilter other) Create a new filter which returnstruewhen both this filter and the given filter returntrue.default DependencyFilteror(DependencyFilter other) Create a new filter which returnstruewhen either this filter or the given filter returntrue.booleanTest to see whether the dependency is acceptable.
-
Field Details
-
ACCEPT
-
REJECT
-
-
Method Details
-
test
Test to see whether the dependency is acceptable.- Parameters:
concreteType- the type of the bean which is to be instantiated (notnull)name- the name of the bean (maybe empty, notnull)priority- the priority of the bean (higher has precedent)- Returns:
trueto accept the dependency, orfalseto reject it
-
and
Create a new filter which returnstruewhen both this filter and the given filter returntrue.- Parameters:
other- the other filter (must not benull)- Returns:
- the combined filter (not
null)
-
or
Create a new filter which returnstruewhen either this filter or the given filter returntrue.- Parameters:
other- the other filter (must not benull)- Returns:
- the combined filter (not
null)
-