Module org.glassfish.hk2.api
Package org.glassfish.hk2.utilities
package org.glassfish.hk2.utilities
-
ClassDescriptionThis class can be used as a starting point for those writing their own ActiveDescriptor.The active descriptor build is for building up a non-reified ActiveDescriptor.An active descriptor class that serves as an alias for another descriptor.The binder is used in conjunction with the
ServiceLocatorUtilities.bind(org.glassfish.hk2.api.ServiceLocator, Binder...)
method in order to add (or remove) services to a ServiceLocator.This class is used to generate DescriptorBuilders to be used as a simple mechanism to create a Filter or Descriptor.This is aPopulatorPostProcessor
that adds anHK2Loader
based on a ClassLoader.This is an implementation ofDescriptorFileFinder
that uses a particular classloader in order to find descriptor files.CleanerFactory provides a Cleaner reference which is created on the first reference to the CleanerFactory.Used by several contexts for keeping the inputs ofContext.findOrCreate(ActiveDescriptor, ServiceHandle)
.This is an object that uses the Builder pattern in order to generate a Descriptor (for binding) or a Filter (for searching).The implementation of the descriptor itself, with the bonus of being externalizable, and having writeable fieldsThis post-processor removes duplicate descriptors from the set of descriptors being added to the service registry.The mode of the duplicate post processorThis module can be used to enable exceptions to be thrown from getService API when a descriptor throws an exception during reification or other errors.This is an implementation of FactoryDescriptors that can be used by hk2 uses when creating descriptors that describe aFactory
This annotation can be put on interfaces in order to provide theGreedyResolver
the default implementation that should be bound when this interface is injected and there are no other implementationsThis is a greedy resolve that will add in any class that has failed to be resolved.This is an implementation of anHK2Loader
that uses a given classloaderThis is an implementation ofErrorService
that simply swallows the exception caught.Implementations of this service will be called whenever an Immediate scoped service failsThis module can be used to enable theImmediate
scope feature.This module can be used to enable theInheritableThread
scope feature.This is a writeable version of the Injectee interface.An implementation ofMethodParameter
that has immutable position and valueThis is an implementation of theNamed
annotation.Creates a filter that matches if at least one of the sub-filters is a match.This module can be used to enable thePerThread
scope feature.This is an implementation ofErrorService
that simply rethrows the exception caught.This is a set of useful utilities for working withServiceLocator
.When this annotation is placed on an abstract class the methods of the class that are abstract will be generated into a subclass by the hk2-metadata-generator along with an emptyService
annotationThis is an implementation ofUnqualified
.