Class NoNameTypeFilter
- java.lang.Object
-
- org.glassfish.hk2.configuration.internal.NoNameTypeFilter
-
- All Implemented Interfaces:
Filter
,IndexedFilter
class NoNameTypeFilter extends java.lang.Object implements IndexedFilter
Matches only things with scope ConfiguredBy and which have no name
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
instanceName
private ServiceLocator
locator
private java.lang.String
typeName
-
Constructor Summary
Constructors Constructor Description NoNameTypeFilter(ServiceLocator locator, java.lang.String typeName, java.lang.String instanceName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAdvertisedContract()
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.String
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
matches(Descriptor d)
Returns true if this filter matches the given objectjava.lang.String
toString()
-
-
-
Field Detail
-
locator
private final ServiceLocator locator
-
typeName
private final java.lang.String typeName
-
instanceName
private final java.lang.String instanceName
-
-
Constructor Detail
-
NoNameTypeFilter
NoNameTypeFilter(ServiceLocator locator, java.lang.String typeName, java.lang.String instanceName)
-
-
Method Detail
-
matches
public boolean matches(Descriptor d)
Description copied from interface:Filter
Returns true if this filter matches the given object
-
getAdvertisedContract
public java.lang.String 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
public java.lang.String 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
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-