Uses of Interface
org.glassfish.hk2.api.DynamicConfiguration
-
-
Uses of DynamicConfiguration in org.glassfish.hk2.api
Methods in org.glassfish.hk2.api that return DynamicConfiguration Modifier and Type Method Description DynamicConfiguration
DynamicConfigurationService. createDynamicConfiguration()
Creates a dynamic configuration that can be used to add or remove values to the system -
Uses of DynamicConfiguration in org.glassfish.hk2.configuration.internal
Methods in org.glassfish.hk2.configuration.internal with parameters of type DynamicConfiguration Modifier and Type Method Description private ActiveDescriptor<?>
ConfigurationListener. addInstanceDescriptor(DynamicConfiguration config, ActiveDescriptor<?> parent, java.lang.String name, java.lang.String type, java.lang.Object bean, java.lang.Object metadata)
-
Uses of DynamicConfiguration in org.glassfish.hk2.extras.events.internal
Classes in org.glassfish.hk2.extras.events.internal that implement DynamicConfiguration Modifier and Type Class Description class
TopicDistributionModule
This module can be used to enable the default HK2 implementation of Topic distribution. -
Uses of DynamicConfiguration in org.glassfish.hk2.runlevel
Classes in org.glassfish.hk2.runlevel that implement DynamicConfiguration Modifier and Type Class Description class
RunLevelServiceModule
This module can be used to enable the RunLevelService in a system not using automatic service discovery. -
Uses of DynamicConfiguration in org.glassfish.hk2.utilities
Classes in org.glassfish.hk2.utilities that implement DynamicConfiguration Modifier and Type Class 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 theImmediate
scope feature.class
InheritableThreadScopeModule
This module can be used to enable theInheritableThread
scope feature.class
PerThreadScopeModule
This module can be used to enable thePerThread
scope feature.Methods in org.glassfish.hk2.utilities that return DynamicConfiguration Modifier and Type Method Description static DynamicConfiguration
ServiceLocatorUtilities. createDynamicConfiguration(ServiceLocator locator)
This method returns aDynamicConfiguration
for use with adding and removing services to the givenServiceLocator
.Methods in org.glassfish.hk2.utilities with parameters of type DynamicConfiguration Modifier and Type Method Description void
Binder. bind(DynamicConfiguration config)
This method will be called by theServiceLocatorUtilities.bind(org.glassfish.hk2.api.ServiceLocator, Binder...)
method for each binder given. -
Uses of DynamicConfiguration in org.glassfish.hk2.utilities.binding
Classes in org.glassfish.hk2.utilities.binding that implement DynamicConfiguration Modifier and Type Class Description class
AbstractBinder
Skeleton implementation of injection binder with convenience methods for binding definitions.Fields in org.glassfish.hk2.utilities.binding declared as DynamicConfiguration Modifier and Type Field Description private DynamicConfiguration
AbstractBinder. configuration
Methods in org.glassfish.hk2.utilities.binding that return DynamicConfiguration Modifier and Type Method Description private DynamicConfiguration
AbstractBinder. configuration()
Get the activebinder factory
instance used for binding configuration.Methods in org.glassfish.hk2.utilities.binding with parameters of type DynamicConfiguration Modifier and Type Method 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)
(package private) void
AbstractBindingBuilder.ClassBasedBindingBuilder. complete(DynamicConfiguration configuration, HK2Loader defaultLoader)
(package private) abstract void
AbstractBindingBuilder. complete(DynamicConfiguration configuration, HK2Loader defaultLoader)
Build the binding descriptor and bind it in thedynamic configuration
.(package private) void
AbstractBindingBuilder.FactoryInstanceBasedBindingBuilder. complete(DynamicConfiguration configuration, HK2Loader defaultLoader)
(package private) void
AbstractBindingBuilder.FactoryTypeBasedBindingBuilder. complete(DynamicConfiguration configuration, HK2Loader defaultLoader)
(package private) void
AbstractBindingBuilder.InstanceBasedBindingBuilder. complete(DynamicConfiguration configuration, HK2Loader defaultLoader)
-
Uses of DynamicConfiguration in org.jvnet.hk2.internal
Classes in org.jvnet.hk2.internal that implement DynamicConfiguration Modifier and Type Class Description class
DynamicConfigurationImpl
The system implementation of the DynamicConfiguration serviceMethods in org.jvnet.hk2.internal that return DynamicConfiguration Modifier and Type Method Description DynamicConfiguration
DynamicConfigurationServiceImpl. createDynamicConfiguration()
-
Uses of DynamicConfiguration in org.jvnet.hk2.testing.junit
Methods in org.jvnet.hk2.testing.junit with parameters of type DynamicConfiguration Modifier and Type Method Description private void
HK2Runner. addServicesFromDefault(DynamicConfiguration config, java.util.Set<java.lang.String> excludes, java.util.Set<java.lang.String> locatorFiles)
private void
HK2Runner. addServicesFromPackage(DynamicConfiguration config, java.util.List<java.lang.String> packages, java.util.Set<java.lang.String> excludes)
private void
HK2Runner. addServicesFromPathDirectory(DynamicConfiguration config, java.util.List<java.lang.String> packages, java.io.File directory, java.util.Set<java.lang.String> excludes)
private void
HK2Runner. addServicesFromPathElement(DynamicConfiguration config, java.util.List<java.lang.String> packages, java.lang.String element, java.util.Set<java.lang.String> excludes)
private void
HK2Runner. addServicesFromPathJar(DynamicConfiguration config, java.util.List<java.lang.String> packages, java.io.File jar, java.util.Set<java.lang.String> excludes)
void
ServiceLocatorTestRule. bind(DynamicConfiguration dynamicConfiguration)
Called at the appropriate time by theServiceLocatorTestRule.configureServiceLocator(ServiceLocator, Description)
method in case subclasses wish to add services to theServiceLocator
being configured.private static void
ServiceLocatorTestRule. bind(DynamicConfiguration configuration, java.io.BufferedReader reader)
Reads the HK2 locator file represented by the suppliedBufferedReader
and binds theDescriptor
s it represents.private void
ServiceLocatorTestRule. bind(DynamicConfiguration configuration, java.lang.reflect.AnnotatedElement element)
Retrieves anyAnnotation
s found on the suppliedAnnotatedElement
and calls theServiceLocatorTestRule.bind(DynamicConfiguration, Collection)
method supplying them as the second parameter.private static void
ServiceLocatorTestRule. bind(DynamicConfiguration configuration, java.lang.String locatorResourceName)
Using the contextClassLoader
, gets all classpath resources with the suppliedlocatorResourceName
, and iterates through them, calling theServiceLocatorTestRule.bind(DynamicConfiguration, URL)
method for each one.private static void
ServiceLocatorTestRule. bind(DynamicConfiguration configuration, java.net.URL locatorResource)
Opens anInputStream
to the suppliedURL
, wraps aBufferedReader
around it, and calls theServiceLocatorTestRule.bind(DynamicConfiguration, BufferedReader)
method.private void
ServiceLocatorTestRule. bind(DynamicConfiguration configuration, java.util.Collection<? extends java.lang.annotation.Annotation> annotations)
Recursively examines theAnnotation
s supplied looking for instances of theClasses
,InhabitantFiles
andPackages
annotations, and, using the binding methods on the suppliedDynamicConfiguration
bindsDescriptor
s for those "reachable" classes into the configuration.private void
ServiceLocatorTestRule. bind(DynamicConfiguration configuration, java.util.Set<java.lang.String> packageNames)
Binds allClass
es "reachable" from the supplied packages.private void
ServiceLocatorTestRule. bind(DynamicConfiguration configuration, Classes classes)
Binds allClass
es "reachable" from the suppliedClasses
annotation.private static void
ServiceLocatorTestRule. bind(DynamicConfiguration configuration, InhabitantFiles inhabitantFiles)
Gathers all classpath resource names found in the suppliedInhabitantFiles
annotation representing HK2 locator files and calls theServiceLocatorTestRule.bind(DynamicConfiguration, String)
method for each such entry found.private void
ServiceLocatorTestRule. bind(DynamicConfiguration configuration, Packages packages)
Binds allClass
es "reachable" from packages described by the suppliedPackages
annotation.void
HK2TestModule. configure(DynamicConfiguration config)
Allows the test to easily configure their testprivate void
HK2Runner. internalAddServicesFromDefault(DynamicConfiguration config, java.util.Set<java.lang.String> excludes, java.util.Set<java.lang.String> locatorFiles)
private void
HK2Runner. internalAddServicesFromPackage(DynamicConfiguration config, java.util.List<java.lang.String> packages, java.util.Set<java.lang.String> excludes)
private void
HK2Runner. readResources(java.util.Enumeration<java.net.URL> resources, java.util.Set<java.lang.String> excludes, DynamicConfiguration config)
-