Package org.jvnet.hk2.internal
Class ServiceLocatorImpl.UnqualifiedIndexedFilter
java.lang.Object
org.jvnet.hk2.internal.ServiceLocatorImpl.UnqualifiedIndexedFilter
- All Implemented Interfaces:
Filter
,IndexedFilter
- Enclosing class:
ServiceLocatorImpl
private static class ServiceLocatorImpl.UnqualifiedIndexedFilter
extends Object
implements IndexedFilter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final String
private final String
private final Unqualified
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
UnqualifiedIndexedFilter
(String contract, String name, Unqualified unqualified) -
Method Summary
Modifier and TypeMethodDescriptionIf this returns non-null then this index will be used to limit the set of Descriptors that will be passed to the matches method.getName()
If this returns non-null then this name will be used to limit the set of Descriptors that will be passed to the matches method.boolean
Returns true if this filter matches the given objecttoString()
-
Field Details
-
contract
-
name
-
unqualified
-
-
Constructor Details
-
UnqualifiedIndexedFilter
-
-
Method Details
-
matches
Description copied from interface:Filter
Returns true if this filter matches the given object -
getAdvertisedContract
Description copied from interface:IndexedFilter
If this returns non-null then this index will be used to limit the set of Descriptors that will be passed to the matches method. Only those descriptors that have an AdverisedContract of this value will be passed to the matches method.- Specified by:
getAdvertisedContract
in interfaceIndexedFilter
- Returns:
- If non null this will limit the descriptors passed to the matches method to those that have this contract in their set of advertised contracts
-
getName
Description copied from interface:IndexedFilter
If this returns non-null then this name will be used to limit the set of Descriptors that will be passed to the matches method. Only those descriptors that has an name of this value will be passed to the matches method.- Specified by:
getName
in interfaceIndexedFilter
- Returns:
- If non null this will limit the descriptors passed to the matches method to those that have name
-
toString
-