Uses of Interface
org.glassfish.hk2.api.DynamicConfiguration
Packages that use DynamicConfiguration
Package
Description
-
Uses of DynamicConfiguration in org.glassfish.hk2.api
Methods in org.glassfish.hk2.api that return DynamicConfigurationModifier and TypeMethodDescriptionDynamicConfigurationService.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 DynamicConfigurationModifier and TypeMethodDescriptionprivate ActiveDescriptor
<?> ConfigurationListener.addInstanceDescriptor
(DynamicConfiguration config, ActiveDescriptor<?> parent, String name, String type, Object bean, Object metadata) -
Uses of DynamicConfiguration in org.glassfish.hk2.extras.events.internal
Classes in org.glassfish.hk2.extras.events.internal that implement DynamicConfigurationModifier and TypeClassDescriptionclass
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 DynamicConfigurationModifier and TypeClassDescriptionclass
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 DynamicConfigurationModifier and TypeClassDescriptionclass
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
This module can be used to enable theImmediate
scope feature.class
This module can be used to enable theInheritableThread
scope feature.class
This module can be used to enable thePerThread
scope feature.Methods in org.glassfish.hk2.utilities that return DynamicConfigurationModifier and TypeMethodDescriptionstatic 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 DynamicConfigurationModifier and TypeMethodDescriptionvoid
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 DynamicConfigurationModifier and TypeClassDescriptionclass
Skeleton implementation of injection binder with convenience methods for binding definitions.Fields in org.glassfish.hk2.utilities.binding declared as DynamicConfigurationMethods in org.glassfish.hk2.utilities.binding that return DynamicConfigurationModifier and TypeMethodDescriptionprivate DynamicConfiguration
AbstractBinder.configuration()
Get the activebinder factory
instance used for binding configuration.Methods in org.glassfish.hk2.utilities.binding with parameters of type DynamicConfigurationModifier and TypeMethodDescriptionstatic 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 DynamicConfigurationModifier and TypeClassDescriptionclass
The system implementation of the DynamicConfiguration serviceMethods in org.jvnet.hk2.internal that return DynamicConfiguration -
Uses of DynamicConfiguration in org.jvnet.hk2.testing.junit
Methods in org.jvnet.hk2.testing.junit with parameters of type DynamicConfigurationModifier and TypeMethodDescriptionprivate void
HK2Runner.addServicesFromDefault
(DynamicConfiguration config, Set<String> excludes, Set<String> locatorFiles) private void
HK2Runner.addServicesFromPackage
(DynamicConfiguration config, List<String> packages, Set<String> excludes) private void
HK2Runner.addServicesFromPathDirectory
(DynamicConfiguration config, List<String> packages, File directory, Set<String> excludes) private void
HK2Runner.addServicesFromPathElement
(DynamicConfiguration config, List<String> packages, String element, Set<String> excludes) private void
HK2Runner.addServicesFromPathJar
(DynamicConfiguration config, List<String> packages, File jar, Set<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 final void
ServiceLocatorTestRule.bind
(DynamicConfiguration configuration, BufferedReader reader) Reads the HK2 locator file represented by the suppliedBufferedReader
and binds theDescriptor
s it represents.private final void
ServiceLocatorTestRule.bind
(DynamicConfiguration configuration, AnnotatedElement element) Retrieves anyAnnotation
s found on the suppliedAnnotatedElement
and calls theServiceLocatorTestRule.bind(DynamicConfiguration, Collection)
method supplying them as the second parameter.private static final void
ServiceLocatorTestRule.bind
(DynamicConfiguration configuration, 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 final void
ServiceLocatorTestRule.bind
(DynamicConfiguration configuration, URL locatorResource) Opens anInputStream
to the suppliedURL
, wraps aBufferedReader
around it, and calls theServiceLocatorTestRule.bind(DynamicConfiguration, BufferedReader)
method.private final void
ServiceLocatorTestRule.bind
(DynamicConfiguration configuration, Collection<? extends 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 final void
ServiceLocatorTestRule.bind
(DynamicConfiguration configuration, Set<String> packageNames) Binds allClass
es "reachable" from the supplied packages.private final void
ServiceLocatorTestRule.bind
(DynamicConfiguration configuration, Classes classes) private static final 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 final void
ServiceLocatorTestRule.bind
(DynamicConfiguration configuration, Packages packages) void
HK2TestModule.configure
(DynamicConfiguration config) Allows the test to easily configure their testprivate void
HK2Runner.internalAddServicesFromDefault
(DynamicConfiguration config, Set<String> excludes, Set<String> locatorFiles) private void
HK2Runner.internalAddServicesFromPackage
(DynamicConfiguration config, List<String> packages, Set<String> excludes) private void
HK2Runner.readResources
(Enumeration<URL> resources, Set<String> excludes, DynamicConfiguration config)