Top Interfaces Annotations Classes Enums
module org.glassfish.hk2.api

Package org.glassfish.hk2.utilities


Interface Summary

Modifier and TypeInterface and Description
public interface
ActiveDescriptorBuilder

The active descriptor build is for building up a non-reified ActiveDescriptor.

public interface
Binder

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.

public interface
DescriptorBuilder

This is an object that uses the Builder pattern in order to generate a Descriptor (for binding) or a Filter (for searching).

public interface
ImmediateErrorHandler

Implementations of this service will be called whenever an Immediate scoped service fails

Annotation Summary

Modifier and TypeAnnotation and Description
public @interface
GreedyDefaultImplementation

This annotation can be put on interfaces in order to provide the GreedyResolver the default implementation that should be bound when this interface is injected and there are no other implementations

public @interface
Stub

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 empty org.jvnet.hk2.annotations.Service annotation

Any jakarta.inject.Named or org.jvnet.hk2.annotations.ContractsProvided annotation on the class marked with this annotation will also be copied to the implementation.

Class Summary

Modifier and TypeClass and Description
public abstract class
AbstractActiveDescriptor<
The type returned from the cache
T
>

This class can be used as a starting point for those writing their own ActiveDescriptor.

public class
AliasDescriptor<
The cache type
T
>

An active descriptor class that serves as an alias for another descriptor.

public class
BuilderHelper

This class is used to generate DescriptorBuilders to be used as a simple mechanism to create a Filter or Descriptor.

public class
ClassLoaderPostProcessor

This is a PopulatorPostProcessor that adds an HK2Loader based on a ClassLoader.

public class
ClasspathDescriptorFileFinder

This is an implementation of DescriptorFileFinder that uses a particular classloader in order to find descriptor files.

public class
CleanerFactory

CleanerFactory provides a Cleaner reference which is created on the first reference to the CleanerFactory.

public class
public class
DescriptorImpl

The implementation of the descriptor itself, with the bonus of being externalizable, and having writeable fields

public class
DuplicatePostProcessor

This post-processor removes duplicate descriptors from the set of descriptors being added to the service registry.

public class
EnableLookupExceptionsModule

This module can be used to enable exceptions to be thrown from getService API when a descriptor throws an exception during reification or other errors.

public class
FactoryDescriptorsImpl

This is an implementation of FactoryDescriptors that can be used by hk2 uses when creating descriptors that describe a Factory

public class
GreedyResolver

This is a greedy resolve that will add in any class that has failed to be resolved.

public class
HK2LoaderImpl

This is an implementation of an HK2Loader that uses a given classloader

public class
IgnoringErrorService

This is an implementation of ErrorService that simply swallows the exception caught.

public class
ImmediateContext

This is the Context implementation for the Immediate scope

public class
ImmediateScopeModule

This module can be used to enable the org.glassfish.hk2.api.Immediate scope feature.

public class
InheritableThreadScopeModule

This module can be used to enable the InheritableThread scope feature.

public class
InjecteeImpl

This is a writeable version of the Injectee interface.

public class
MethodParameterImpl

An implementation of MethodParameter that has immutable position and value

public class
NamedImpl

This is an implementation of the Named annotation.

public class
OrFilter

Creates a filter that matches if at least one of the sub-filters is a match.

public class
PerThreadScopeModule

This module can be used to enable the org.glassfish.hk2.api.PerThread scope feature.

public class
RethrowErrorService

This is an implementation of ErrorService that simply rethrows the exception caught.

public abstract class
ServiceLocatorUtilities

This is a set of useful utilities for working with ServiceLocator.

public class
UnqualifiedImpl

This is an implementation of Unqualified.

Enum Summary

Modifier and TypeEnum and Description
public enum
DuplicatePostProcessorMode

The mode of the duplicate post processor