Modifier and Type | Class and Description |
---|---|
private static class |
Main.MainFilter
This filter matches against the name, including only
matching a ModuleStartup with no name if name is
null (unlike a normal "null" returned from name, which
acts as a wildcard for the name)
|
Modifier and Type | Interface and Description |
---|---|
interface |
IndexedFilter
This filter can be used to limit the set of Descriptors
passed to the matches method.
|
Modifier and Type | Method and Description |
---|---|
Filter |
InterceptionService.getDescriptorFilter()
If the returned filter returns true then the methods
of the service will be passed to
InterceptionService.getMethodInterceptors(Method)
to determine if a method should be intercepted and the
constructor of the service will be passed to
InterceptionService.getConstructorInterceptors(Constructor) to
determine if the constructor should be intercepted |
Filter |
ValidationInformation.getFilter()
On a LOOKUP operation the
Filter that was used in the
lookup operation. |
Filter |
InstanceLifecycleListener.getFilter()
This returns a filter that tells the system whether a particular descriptor should be handled by this lifecycle
listener.
|
Filter |
ValidationService.getLookupFilter()
This filter will be run at least once per descriptor at the point that the descriptor
is being looked up, either with the
ServiceLocator API or due to
an @Inject resolution. |
Modifier and Type | Method and Description |
---|---|
void |
DynamicConfiguration.addIdempotentFilter(Filter... idempotentFilter)
At commit time all idempotent filters in this dynamic configuration will be run
against all validation-visible descriptors.
|
void |
DynamicConfiguration.addUnbindFilter(Filter unbindFilter)
This filter will added to the list of filters in this Configuration that will
determine which Descriptors will be removed from the system.
|
java.util.List<ServiceHandle<?>> |
ServiceLocator.getAllServiceHandles(Filter searchCriteria)
Gets a list of
ServiceHandle whose ActiveDescriptor s match
the supplied filter. |
java.util.List<?> |
ServiceLocator.getAllServices(Filter searchCriteria)
Gets all services from this locator that match the provided
Filter |
ActiveDescriptor<?> |
ServiceLocator.getBestDescriptor(Filter filter)
Gets the descriptor that best matches this filter, taking ranking
and service id into account
|
java.util.List<ActiveDescriptor<?>> |
ServiceLocator.getDescriptors(Filter filter)
Gets the list of descriptors that match the given filter
|
Modifier and Type | Class and Description |
---|---|
(package private) class |
ChildFilter |
(package private) class |
NoNameTypeFilter
Matches only things with scope ConfiguredBy and which have no name
|
Modifier and Type | Field and Description |
---|---|
private static Filter |
ConfigurationValidationService.LOOKUP_FILTER |
Modifier and Type | Method and Description |
---|---|
Filter |
ConfigurationValidationService.getLookupFilter() |
Modifier and Type | Field and Description |
---|---|
private static Filter |
DefaultTopicDistributionService.SUBSCRIBER_FILTER |
Modifier and Type | Method and Description |
---|---|
Filter |
DefaultTopicDistributionService.getFilter() |
Modifier and Type | Class and Description |
---|---|
private static class |
Hk2BridgeImpl.NoLocalNoRemoteFilter |
private static class |
Hk2BridgeImpl.RemoveFilter |
Modifier and Type | Field and Description |
---|---|
private Filter |
Hk2BridgeImpl.filter |
Modifier and Type | Method and Description |
---|---|
Filter |
DefaultInterceptionService.getDescriptorFilter() |
Modifier and Type | Class and Description |
---|---|
class |
ImmediateLocalLocatorFilter
Filter only picks up local services
|
class |
IndexedFilterImpl
Implementation created by the builder
|
class |
SpecificFilterImpl
This is a filter that matches an exact descriptor
|
class |
StarFilter
A filter that gets everything! w00t w00t!
|
Modifier and Type | Method and Description |
---|---|
Filter |
ImmediateHelper.getLookupFilter() |
Modifier and Type | Class and Description |
---|---|
class |
OrFilter
Creates a filter that matches if at least one
of the sub-filters is a match.
|
private static class |
ServiceLocatorUtilities.AliasFilter |
Modifier and Type | Field and Description |
---|---|
private Filter |
ImmediateContext.validationFilter |
Modifier and Type | Field and Description |
---|---|
private java.util.ArrayList<Filter> |
OrFilter.allFilters |
Modifier and Type | Method and Description |
---|---|
static Filter |
BuilderHelper.allFilter()
Returns a filter of type Descriptor that matches
all descriptors
|
Filter |
ImmediateContext.getValidationFilter() |
Modifier and Type | Method and Description |
---|---|
static boolean |
BuilderHelper.filterMatches(Descriptor baseDescriptor,
Filter filter)
Determines if the given descriptor matches the given filter.
|
static void |
ServiceLocatorUtilities.removeFilter(ServiceLocator locator,
Filter filter)
Removes all the descriptors from the given locator that match the
given filter
|
static void |
ServiceLocatorUtilities.removeFilter(ServiceLocator locator,
Filter filter,
boolean includeAliasDescriptors)
Removes all the descriptors from the given locator that match the
given filter
|
Constructor and Description |
---|
OrFilter(Filter... filters)
Creates an OrFilter whose matches methods returns
true if at least one of the filters given returns
true.
|
Modifier and Type | Method and Description |
---|---|
void |
AbstractBinder.addIdempotentFilter(Filter... unbindFilter)
At commit time all idempotent filters in this dynamic configuration will be run
against all validation-visible descriptors.
|
void |
AbstractBinder.addUnbindFilter(Filter unbindFilter)
This filter will added to the list of filters in this Configuration that will
determine which Descriptors will be removed from the system.
|
Modifier and Type | Field and Description |
---|---|
private static Filter |
Hk2LocatorUtilities.NO_INITIAL_SERVICES_FILTER |
Modifier and Type | Method and Description |
---|---|
static Filter |
Hk2LocatorUtilities.getNoInitialServicesFilter()
Returns a filter that only returns services that are not
in the initial set of services offered by all ServiceLocators
created by this implementation of hk2.
|
Modifier and Type | Class and Description |
---|---|
private static class |
ServiceLocatorImpl.UnqualifiedIndexedFilter |
Modifier and Type | Field and Description |
---|---|
private Filter |
ServiceLocatorImpl.IgdCacheKey.filter |
private Filter |
ValidationInformationImpl.filter |
Modifier and Type | Field and Description |
---|---|
private java.util.LinkedList<Filter> |
DynamicConfigurationImpl.allIdempotentFilters |
private java.util.LinkedList<Filter> |
DynamicConfigurationImpl.allUnbindFilters |
Modifier and Type | Method and Description |
---|---|
Filter |
ValidationInformationImpl.getFilter() |
Modifier and Type | Method and Description |
---|---|
(package private) java.util.LinkedList<Filter> |
DynamicConfigurationImpl.getIdempotentFilters() |
(package private) java.util.LinkedList<Filter> |
DynamicConfigurationImpl.getUnbindFilters() |
Modifier and Type | Method and Description |
---|---|
void |
DynamicConfigurationImpl.addIdempotentFilter(Filter... idempotentFilter) |
void |
DynamicConfigurationImpl.addUnbindFilter(Filter unbindFilter) |
java.util.List<ServiceHandle<?>> |
ServiceLocatorImpl.getAllServiceHandles(Filter searchCriteria) |
java.util.List<?> |
ServiceLocatorImpl.getAllServices(Filter searchCriteria) |
ActiveDescriptor<?> |
ServiceLocatorImpl.getBestDescriptor(Filter filter) |
java.util.List<ActiveDescriptor<?>> |
ServiceLocatorImpl.getDescriptors(Filter filter) |
private java.util.List<SystemDescriptor<?>> |
ServiceLocatorImpl.getDescriptors(Filter filter,
Injectee onBehalfOf,
boolean getParents,
boolean doValidation,
boolean getLocals) |
private ImmediateResults |
ServiceLocatorImpl.narrow(ServiceLocator locator,
java.util.List<SystemDescriptor<?>> candidates,
java.lang.reflect.Type requiredType,
java.lang.String name,
Injectee injectee,
boolean onlyOne,
boolean doValidation,
NarrowResults cachedResults,
Filter filter,
java.lang.annotation.Annotation... qualifiers) |
private java.util.List<ActiveDescriptor<?>> |
ServiceLocatorImpl.protectedGetDescriptors(Filter filter) |
private boolean |
ServiceLocatorImpl.validate(SystemDescriptor<?> descriptor,
Injectee onBehalfOf,
Filter filter)
Must be called under lock
|
Constructor and Description |
---|
IgdCacheKey(CacheKey key,
java.lang.String name,
Injectee onBehalfOf,
java.lang.reflect.Type contractOrImpl,
java.lang.Class<?> rawClass,
java.lang.annotation.Annotation[] qualifiers,
Filter filter) |
ValidationInformationImpl(Operation operation,
ActiveDescriptor<?> candidate,
Injectee injectee,
Filter filter)
Creates the validation information
|
Modifier and Type | Method and Description |
---|---|
Filter |
HK2JmxSpecifier.getJmxDescriptorFilter()
Returns true for descriptors that should possibly have
instances put into JMX.
|