Uses of Interface
org.glassfish.hk2.api.Filter
Packages that use Filter
Package
Description
-
Uses of Filter in org.glassfish.hk2.api
Subinterfaces of Filter in org.glassfish.hk2.apiModifier and TypeInterfaceDescriptioninterfaceThis filter can be used to limit the set of Descriptors passed to the matches method.Methods in org.glassfish.hk2.api that return FilterModifier and TypeMethodDescriptionInterceptionService.getDescriptorFilter()If the returned filter returns true then the methods of the service will be passed toInterceptionService.getMethodInterceptors(Method)to determine if a method should be intercepted and the constructor of the service will be passed toInterceptionService.getConstructorInterceptors(Constructor)to determine if the constructor should be interceptedInstanceLifecycleListener.getFilter()This returns a filter that tells the system whether a particular descriptor should be handled by this lifecycle listener.ValidationInformation.getFilter()On a LOOKUP operation theFilterthat was used in the lookup operation.ValidationService.getLookupFilter()This filter will be run at least once per descriptor at the point that the descriptor is being looked up, either with theServiceLocatorAPI or due to an @Inject resolution.Methods in org.glassfish.hk2.api with parameters of type FilterModifier and TypeMethodDescriptionvoidDynamicConfiguration.addIdempotentFilter(Filter... idempotentFilter) At commit time all idempotent filters in this dynamic configuration will be run against all validation-visible descriptors.voidDynamicConfiguration.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.List<ServiceHandle<?>>ServiceLocator.getAllServiceHandles(Filter searchCriteria) Gets a list ofServiceHandlewhoseActiveDescriptors match the supplied filter.List<?>ServiceLocator.getAllServices(Filter searchCriteria) Gets all services from this locator that match the providedFilterServiceLocator.getBestDescriptor(Filter filter) Gets the descriptor that best matches this filter, taking ranking and service id into accountList<ActiveDescriptor<?>>ServiceLocator.getDescriptors(Filter filter) Gets the list of descriptors that match the given filter -
Uses of Filter in org.glassfish.hk2.internal
Classes in org.glassfish.hk2.internal that implement FilterModifier and TypeClassDescriptionclassFilter only picks up local servicesclassImplementation created by the builderclassThis is a filter that matches an exact descriptorclassA filter that gets everything! w00t w00t!Methods in org.glassfish.hk2.internal that return Filter -
Uses of Filter in org.glassfish.hk2.utilities
Classes in org.glassfish.hk2.utilities that implement FilterModifier and TypeClassDescriptionclassCreates a filter that matches if at least one of the sub-filters is a match.Methods in org.glassfish.hk2.utilities that return FilterModifier and TypeMethodDescriptionstatic FilterBuilderHelper.allFilter()Returns a filter of type Descriptor that matches all descriptorsImmediateContext.getValidationFilter()Methods in org.glassfish.hk2.utilities with parameters of type FilterModifier and TypeMethodDescriptionstatic booleanBuilderHelper.filterMatches(Descriptor baseDescriptor, Filter filter) Determines if the given descriptor matches the given filter.static voidServiceLocatorUtilities.removeFilter(ServiceLocator locator, Filter filter) Removes all the descriptors from the given locator that match the given filterstatic voidServiceLocatorUtilities.removeFilter(ServiceLocator locator, Filter filter, boolean includeAliasDescriptors) Removes all the descriptors from the given locator that match the given filterConstructors in org.glassfish.hk2.utilities with parameters of type Filter -
Uses of Filter in org.glassfish.hk2.utilities.binding
Methods in org.glassfish.hk2.utilities.binding with parameters of type FilterModifier and TypeMethodDescriptionvoidAbstractBinder.addIdempotentFilter(Filter... unbindFilter) At commit time all idempotent filters in this dynamic configuration will be run against all validation-visible descriptors.voidAbstractBinder.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.