Top Description Fields Constructors Methods
org.glassfish.hk2.internal

public Class SpecificFilterImpl

extends Object
implements IndexedFilter
Class Inheritance
All Implemented Interfaces
org.glassfish.hk2.api.IndexedFilter, org.glassfish.hk2.api.Filter
Imports
org.glassfish.hk2.api.Descriptor, .IndexedFilter

This is a filter that matches an exact descriptor
Author
jwells

Field Summary

Modifier and TypeField and Description
private final String
private final long
private final long
private final String

Constructor Summary

AccessConstructor and Description
public
SpecificFilterImpl(String contract, String name, long id, long locatorId)

For matching an exact descriptor

Method Summary

Modifier and TypeMethod and Description
public String
getAdvertisedContract()

Implements org.glassfish.hk2.api.IndexedFilter.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.

public String
getName()

Implements org.glassfish.hk2.api.IndexedFilter.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.

public boolean
matches(Descriptor d)

Implements org.glassfish.hk2.api.Filter.matches.

Returns true if this filter matches the given object

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

contractback to summary
private final String contract
idback to summary
private final long id
locatorIdback to summary
private final long locatorId
nameback to summary
private final String name

Constructor Detail

SpecificFilterImplback to summary
public SpecificFilterImpl(String contract, String name, long id, long locatorId)

For matching an exact descriptor

Method Detail

getAdvertisedContractback to summary
public String getAdvertisedContract()

Implements org.glassfish.hk2.api.IndexedFilter.getAdvertisedContract.

Doc from org.glassfish.hk2.api.IndexedFilter.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. Only those descriptors that have an AdverisedContract of this value will be passed to the matches method.

Annotations
@Override
getNameback to summary
public String getName()

Implements org.glassfish.hk2.api.IndexedFilter.getName.

Doc from org.glassfish.hk2.api.IndexedFilter.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. Only those descriptors that has an name of this value will be passed to the matches method.

Annotations
@Override
matchesback to summary
public boolean matches(Descriptor d)

Implements org.glassfish.hk2.api.Filter.matches.

Doc from org.glassfish.hk2.api.Filter.matches.

Returns true if this filter matches the given object

Annotations
@Override