java.lang.Object
org.glassfish.hk2.internal.SpecificFilterImpl
- All Implemented Interfaces:
Filter,IndexedFilter
This is a filter that matches an exact descriptor
- Author:
- jwells
-
Constructor Summary
ConstructorsConstructorDescriptionSpecificFilterImpl(String contract, String name, long id, long locatorId) For matching an exact descriptor -
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.booleanReturns true if this filter matches the given object
-
Constructor Details
-
SpecificFilterImpl
For matching an exact descriptor- Parameters:
contract-name-id-locatorId-
-
-
Method Details
-
matches
Description copied from interface:FilterReturns true if this filter matches the given object -
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
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
-