Modifier and Type | Interface and Description |
---|---|
interface |
ClassAnalyzer
When HK2 automatically analyzes a class to find the constructor, fields,
initializer methods and postConstruct and preDestroy methods it uses this
service to analyze the class.
|
interface |
Context<T>
An implementation of this must be put into the system in order to
create contextual instances of services.
|
interface |
DescriptorFileFinder
Implementations of this interface allow the customization of
how hk2 inhabitant files are found.
|
interface |
DynamicConfigurationListener
A service that listens for dynamic configuration changes.
|
interface |
DynamicConfigurationService
The dynamic configuration service is the source of
DynamicConfiguration
instances, which can be used to bind and unbind entities into the system |
interface |
ErrorService
This interface should be implemented by those who wish to be
notified of error conditions that occur within HK2.
|
interface |
Factory<T>
This interface should be implemented in order to provide
a factory for another type.
|
interface |
ImmediateController
This service is advertised when the Immediate service is put into the
registry.
|
interface |
InjectionResolver<T>
This class allows users to provide a custom injection target for
any annotation (including @Inject).
|
interface |
InstanceLifecycleListener
This processor is called for certain events in the lifecycle of instances
of services.
|
interface |
InstantiationService
This service is used to get information about
the creation of a service from an
implementation of
Factory . |
interface |
InterceptionService
This service is implemented in order to configure
interceptors on methods or constructors provided by
hk2 services.
|
interface |
JustInTimeInjectionResolver
The JustInTimeInjectionResolver is called when an injection point
cannot find anything to inject.
|
interface |
ServiceLocator
ServiceLocator is the registry for HK2 services
|
interface |
ValidationService
This service can be used to add validation points to Descriptors.
|
Modifier and Type | Interface and Description |
---|---|
interface |
TopicDistributionService
This service is responsible for distributing messages to Topic subscribers
|
Modifier and Type | Interface and Description |
---|---|
interface |
BeanDatabaseUpdateListener
This is a listener that is notified when changes are made to
the current
BeanDatabase |
interface |
Hub
The central repository of configuration objects in the system.
|
Modifier and Type | Interface and Description |
---|---|
interface |
PropertyFileService
This service will read a java property file and add its contents
to the HK2 configuration hub.
|
Modifier and Type | Interface and Description |
---|---|
interface |
DefaultTopicDistributionErrorService
When using the TopicDistributionService added with
ServiceLocatorUtilities.enableTopicDistribution(org.glassfish.hk2.api.ServiceLocator)
if a subscriber throws an exception this service will be called. |
Modifier and Type | Interface and Description |
---|---|
interface |
InterceptorOrderingService
This service can be used to modify, add or remove interceptors
to the set of interceptors that will be called on a Method
or Constructor in the default implementation of the
interception service.
|
Modifier and Type | Class and Description |
---|---|
class |
OperationContext<T extends Annotation>
The implementation of
Context for an Operation. |
interface |
OperationHandle<T extends Annotation>
This handle is used to associate or dis-associate threads with
Operations.
|
interface |
OperationManager
Manages HK2 operations, allowing the user to create new operations of a particular
type or discover the current set of active operations or find the current operation
on the current thread
|
Modifier and Type | Interface and Description |
---|---|
interface |
ProgressStartedListener
Instances of classes implementing this contract can be registered with HK2
to be informed when the system starts progressing to a new level, either
upward or downward
|
interface |
RunLevel
Defines a run/start level.
|
interface |
RunLevelController
A RunLevelContoller controls the current state of
services registered in the
RunLevel scope. |
interface |
RunLevelListener
Instances of classes implementing this contract can be registered with HK2
to be informed of events of RunLevelControllers.
|
interface |
Sorter
Contract for sorting descriptors for run level services.
|
Modifier and Type | Interface and Description |
---|---|
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. |
interface |
ImmediateErrorHandler
Implementations of this service will be called whenever
an Immediate scoped service fails
|
Modifier and Type | Interface and Description |
---|---|
interface |
ServiceLocatorRuntimeBean
Runtime information about the ServiceLocator.
|
Modifier and Type | Interface and Description |
---|---|
interface |
GuiceIntoHK2Bridge
Guice Bridge
|
Modifier and Type | Interface and Description |
---|---|
interface |
SpringIntoHK2Bridge
This service is used to give HK2 spring
BeanFactories in which to find Spring
services
|
Copyright © 2009-2017, Oracle and/or its affiliates. All Rights Reserved.