Package | Description |
---|---|
org.glassfish.hk2.api | |
org.glassfish.hk2.extension | |
org.glassfish.hk2.internal | |
org.glassfish.hk2.utilities | |
org.glassfish.hk2.utilities.binding | |
org.jvnet.hk2.annotations |
HK2 annotations that mark components and their required dependencies. Primary API surface of HK2.
|
Class and Description |
---|
ActiveDescriptor
An ActiveDescriptor contains information about a Descriptor after it has been reified.
|
Descriptor
A Descriptor is a bean-like structure that describes a service
declaration in HK2.
|
DescriptorFileFinder
Implementations of this interface allow the customization of
how hk2 inhabitant files are found.
|
DescriptorType
This describes the type of descriptor
|
DescriptorVisibility
This enumeration determines how visibility of a descriptor
|
DynamicConfiguration
This class is used to add
Descriptor s to a ServiceLocator
instance. |
ErrorInformation
This class has information in it about the error that
has occurred
|
ErrorType
This enumeration describes the types of errors that might
occur
|
Factory
This interface should be implemented in order to provide
a factory for another type.
|
FactoryDescriptors
This is a convenience class that links together the factory descriptor as a factory
for another type and the factory as a service itself.
|
Filter
This object is used to search for items
in the service registry
|
HK2Loader
This class is responsible for loading classes, and different
implementations can be used for different descriptors.
|
HK2RuntimeException
Base class for HK2 defined runtime exceptions
|
ImmediateController.ImmediateServiceState |
Injectee
An Injectee represents the point of injection.
|
InstanceLifecycleEvent
This object contains information about a lifecycle
event.
|
InstanceLifecycleEventType
This describes the type of lifecycle events
that can happen in the system
|
InstantiationData
Contains information about the caller of a
Factory.provide() method |
IterableProvider
This object can be injected rather than
Provider when
it is desired to iterate over more than one returned instance of the type. |
MethodParameter
This is used to describe the values to be given to
the method in the
ServiceLocator.assistedInject(Object, java.lang.reflect.Method, MethodParameter...)
method |
MultiException
This exception can contain multiple other exceptions.
|
Operation
This defines the operations that may be validated
|
Populator
Implementations of this interface are used to populate HK2
service locators from inhabitants files
|
PopulatorPostProcessor
This interface allows the customization of services read in from
an external source.
|
ServiceHandle
This service handle can be used to get a specific instance
of a service, and can be used to destroy that service as well
|
ServiceLocator
ServiceLocator is the registry for HK2 services
|
ServiceLocatorFactory
This factory can be used to create new named ServiceLocators
|
ServiceLocatorFactory.CreatePolicy
Tells the create method what to do if an existing ServiceLocator
with the given name exists
|
ServiceLocatorListener
This is added to the
ServiceLocatorFactory in order to listen on service locators
coming and going. |
ServiceLocatorState
The possible states in which a service locator can be in.
|
SingleCache
This cache can be used in some circumstances when there can be only one
of a service.
|
TwoPhaseResource
Implementations of this interface can be added to a
DynamicConfiguration
in order to atomically participate in the changes being made to the
ServiceLocator . |
TwoPhaseTransactionData |
Unproxiable
This annotation must go on a scope annotation in order to indicate
that no services from this scope may be proxied.
|
Unqualified
An injection point can be annotated with @Unqualified if
it should only be injected with services that have no qualifiers
at all
|
ValidationInformation
This object contains information about the validation
point.
|
Validator
This method is called when it determined that a type that is
annotated with a Validating annotation is to be injected into
any other class.
|
Class and Description |
---|
ServiceLocator
ServiceLocator is the registry for HK2 services
|
Class and Description |
---|
ActiveDescriptor
An ActiveDescriptor contains information about a Descriptor after it has been reified.
|
Context
An implementation of this must be put into the system in order to
create contextual instances of services.
|
Descriptor
A Descriptor is a bean-like structure that describes a service
declaration in HK2.
|
DescriptorVisibility
This enumeration determines how visibility of a descriptor
|
DynamicConfigurationListener
A service that listens for dynamic configuration changes.
|
ErrorInformation
This class has information in it about the error that
has occurred
|
ErrorService
This interface should be implemented by those who wish to be
notified of error conditions that occur within HK2.
|
FactoryDescriptors
This is a convenience class that links together the factory descriptor as a factory
for another type and the factory as a service itself.
|
Filter
This object is used to search for items
in the service registry
|
HK2Loader
This class is responsible for loading classes, and different
implementations can be used for different descriptors.
|
ImmediateController
This service is advertised when the Immediate service is put into the
registry.
|
ImmediateController.ImmediateServiceState |
IndexedFilter
This filter can be used to limit the set of Descriptors
passed to the matches method.
|
MultiException
This exception can contain multiple other exceptions.
|
ServiceHandle
This service handle can be used to get a specific instance
of a service, and can be used to destroy that service as well
|
ServiceLocator
ServiceLocator is the registry for HK2 services
|
ServiceLocatorFactory
This factory can be used to create new named ServiceLocators
|
ServiceLocatorFactory.CreatePolicy
Tells the create method what to do if an existing ServiceLocator
with the given name exists
|
ServiceLocatorListener
This is added to the
ServiceLocatorFactory in order to listen on service locators
coming and going. |
SingleCache
This cache can be used in some circumstances when there can be only one
of a service.
|
ValidationInformation
This object contains information about the validation
point.
|
ValidationService
This service can be used to add validation points to Descriptors.
|
Validator
This method is called when it determined that a type that is
annotated with a Validating annotation is to be injected into
any other class.
|
Visibility
This annotation is used when automatically analyzing a class or a
{link
Factory.provide() method to indicate that the descriptor
either should or should not have LOCAL visibility. |
Class and Description |
---|
ActiveDescriptor
An ActiveDescriptor contains information about a Descriptor after it has been reified.
|
AnnotationLiteral
Supports inline instantiation of annotation type instances.
|
Context
An implementation of this must be put into the system in order to
create contextual instances of services.
|
Descriptor
A Descriptor is a bean-like structure that describes a service
declaration in HK2.
|
DescriptorFileFinder
Implementations of this interface allow the customization of
how hk2 inhabitant files are found.
|
DescriptorFileFinderInformation
Returns information about the
InputStream
returned by DescriptorFileFinder.findDescriptorFiles()
that can be used to give better information when one of the
streams fails. |
DescriptorType
This describes the type of descriptor
|
DescriptorVisibility
This enumeration determines how visibility of a descriptor
|
DynamicConfiguration
This class is used to add
Descriptor s to a ServiceLocator
instance. |
ErrorInformation
This class has information in it about the error that
has occurred
|
ErrorService
This interface should be implemented by those who wish to be
notified of error conditions that occur within HK2.
|
Factory
This interface should be implemented in order to provide
a factory for another type.
|
FactoryDescriptors
This is a convenience class that links together the factory descriptor as a factory
for another type and the factory as a service itself.
|
Filter
This object is used to search for items
in the service registry
|
HK2Loader
This class is responsible for loading classes, and different
implementations can be used for different descriptors.
|
Immediate
Immediate is a scope that operates like
Singleton scope, except that instances are created as soon as their
corresponding Descriptor s are added. |
ImmediateController
This service is advertised when the Immediate service is put into the
registry.
|
IndexedFilter
This filter can be used to limit the set of Descriptors
passed to the matches method.
|
InheritableThread
InheritableThread is a scope that operates like
PerThread scope, except with the caveat that
InheritableThread scoped services provide inheritance of values from parent
thread to child thread. |
Injectee
An Injectee represents the point of injection.
|
JustInTimeInjectionResolver
The JustInTimeInjectionResolver is called when an injection point
cannot find anything to inject.
|
MethodParameter
This is used to describe the values to be given to
the method in the
ServiceLocator.assistedInject(Object, java.lang.reflect.Method, MethodParameter...)
method |
MultiException
This exception can contain multiple other exceptions.
|
PerLookup
PerLookup is the scope for objects that are created every time they are looked up.
|
PerThread
PerThread is a scope that operates like
Singleton scope, except on a per-thread basis. |
PopulatorPostProcessor
This interface allows the customization of services read in from
an external source.
|
ServiceHandle
This service handle can be used to get a specific instance
of a service, and can be used to destroy that service as well
|
ServiceLocator
ServiceLocator is the registry for HK2 services
|
SingleCache
This cache can be used in some circumstances when there can be only one
of a service.
|
Unqualified
An injection point can be annotated with @Unqualified if
it should only be injected with services that have no qualifiers
at all
|
Visibility
This annotation is used when automatically analyzing a class or a
{link
Factory.provide() method to indicate that the descriptor
either should or should not have LOCAL visibility. |
Class and Description |
---|
ActiveDescriptor
An ActiveDescriptor contains information about a Descriptor after it has been reified.
|
Descriptor
A Descriptor is a bean-like structure that describes a service
declaration in HK2.
|
DynamicConfiguration
This class is used to add
Descriptor s to a ServiceLocator
instance. |
Factory
This interface should be implemented in order to provide
a factory for another type.
|
FactoryDescriptors
This is a convenience class that links together the factory descriptor as a factory
for another type and the factory as a service itself.
|
Filter
This object is used to search for items
in the service registry
|
HK2Loader
This class is responsible for loading classes, and different
implementations can be used for different descriptors.
|
MultiException
This exception can contain multiple other exceptions.
|
TwoPhaseResource
Implementations of this interface can be added to a
DynamicConfiguration
in order to atomically participate in the changes being made to the
ServiceLocator . |
TypeLiteral
Supports inline instantiation of objects that represent parameterized
types with actual type parameters.
|
Class and Description |
---|
ContractIndicator
This annotation is put on annotations that are used
to mark things as hk2 contracts.
|
Copyright © 2009–2019 Oracle Corporation. All rights reserved.