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 java.lang.Object implements IndexedFilter
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Stringcontractprivate java.lang.Stringnameprivate Unqualifiedunqualified
-
Constructor Summary
Constructors Modifier Constructor Description privateUnqualifiedIndexedFilter(java.lang.String contract, java.lang.String name, Unqualified unqualified)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAdvertisedContract()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.java.lang.StringgetName()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.booleanmatches(Descriptor d)Returns true if this filter matches the given objectjava.lang.StringtoString()
-
-
-
Field Detail
-
contract
private final java.lang.String contract
-
name
private final java.lang.String name
-
unqualified
private final Unqualified unqualified
-
-
Constructor Detail
-
UnqualifiedIndexedFilter
private UnqualifiedIndexedFilter(java.lang.String contract, java.lang.String name, Unqualified unqualified)
-
-
Method Detail
-
matches
public boolean matches(Descriptor d)
Description copied from interface:FilterReturns true if this filter matches the given object
-
getAdvertisedContract
public java.lang.String getAdvertisedContract()
Description copied from interface:IndexedFilterIf 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:
getAdvertisedContractin 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
public java.lang.String getName()
Description copied from interface:IndexedFilterIf 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:
getNamein interfaceIndexedFilter- Returns:
- If non null this will limit the descriptors passed to the matches method to those that have name
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-