Modifier and Type | Method and Description |
---|---|
DynamicConfiguration |
DynamicConfigurationService.createDynamicConfiguration()
Creates a dynamic configuration that can be used to add or remove values
to the system
|
Modifier and Type | Class and Description |
---|---|
class |
TopicDistributionModule
This module can be used to enable the default HK2
implementation of Topic distribution.
|
Modifier and Type | Class and Description |
---|---|
class |
RunLevelServiceModule
This module can be used to enable the RunLevelService
in a system not using automatic service discovery.
|
Modifier and Type | Class and Description |
---|---|
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.
|
class |
ImmediateScopeModule
This module can be used to enable the
Immediate scope
feature. |
class |
InheritableThreadScopeModule
This module can be used to enable the
InheritableThread scope
feature. |
class |
PerThreadScopeModule
This module can be used to enable the
PerThread scope
feature. |
Modifier and Type | Method and Description |
---|---|
static DynamicConfiguration |
ServiceLocatorUtilities.createDynamicConfiguration(ServiceLocator locator)
This method returns a
DynamicConfiguration for use with adding
and removing services to the given ServiceLocator . |
Modifier and Type | Method and Description |
---|---|
void |
Binder.bind(DynamicConfiguration config)
This method will be called by the
ServiceLocatorUtilities.bind(org.glassfish.hk2.api.ServiceLocator, Binder...) method for each
binder given. |
Modifier and Type | Class and Description |
---|---|
class |
AbstractBinder
Skeleton implementation of injection binder with convenience methods for
binding definitions.
|
Modifier and Type | Method and Description |
---|---|
static void |
BindingBuilderFactory.addBinding(BindingBuilder<?> builder,
DynamicConfiguration configuration)
Add a binding represented by the binding builder to the HK2 dynamic configuration.
|
static void |
BindingBuilderFactory.addBinding(BindingBuilder<?> builder,
DynamicConfiguration configuration,
HK2Loader defaultLoader)
Add a binding represented by the binding builder to the HK2 dynamic configuration.
|
void |
AbstractBinder.bind(DynamicConfiguration configuration) |
Modifier and Type | Class and Description |
---|---|
class |
DynamicConfigurationImpl
The system implementation of the DynamicConfiguration service
|
Modifier and Type | Method and Description |
---|---|
DynamicConfiguration |
DynamicConfigurationServiceImpl.createDynamicConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
ServiceLocatorTestRule.bind(DynamicConfiguration dynamicConfiguration)
Called at the appropriate time by the
ServiceLocatorTestRule.configureServiceLocator(ServiceLocator, Description) method in
case subclasses wish to add services to the ServiceLocator being configured. |
void |
HK2TestModule.configure(DynamicConfiguration config)
Allows the test to easily configure their test
|
Copyright © 2009-2017, Oracle and/or its affiliates. All Rights Reserved.