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 TypeClassDescriptionclassThis 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 TypeClassDescriptionclassThis 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 TypeClassDescriptionclassThis module can be used to enable exceptions to be thrown from getService API when a descriptor throws an exception during reification or other errors.classThis module can be used to enable theImmediatescope feature.classThis module can be used to enable theInheritableThreadscope feature.classThis module can be used to enable thePerThreadscope feature.Methods in org.glassfish.hk2.utilities that return DynamicConfigurationModifier and TypeMethodDescriptionstatic DynamicConfigurationServiceLocatorUtilities.createDynamicConfiguration(ServiceLocator locator) This method returns aDynamicConfigurationfor use with adding and removing services to the givenServiceLocator.Methods in org.glassfish.hk2.utilities with parameters of type DynamicConfigurationModifier and TypeMethodDescriptionvoidBinder.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 TypeClassDescriptionclassSkeleton 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 DynamicConfigurationAbstractBinder.configuration()Get the activebinder factoryinstance used for binding configuration.Methods in org.glassfish.hk2.utilities.binding with parameters of type DynamicConfigurationModifier and TypeMethodDescriptionstatic voidBindingBuilderFactory.addBinding(BindingBuilder<?> builder, DynamicConfiguration configuration) Add a binding represented by the binding builder to the HK2 dynamic configuration.static voidBindingBuilderFactory.addBinding(BindingBuilder<?> builder, DynamicConfiguration configuration, HK2Loader defaultLoader) Add a binding represented by the binding builder to the HK2 dynamic configuration.voidAbstractBinder.bind(DynamicConfiguration configuration) (package private) voidAbstractBindingBuilder.ClassBasedBindingBuilder.complete(DynamicConfiguration configuration, HK2Loader defaultLoader) (package private) abstract voidAbstractBindingBuilder.complete(DynamicConfiguration configuration, HK2Loader defaultLoader) Build the binding descriptor and bind it in thedynamic configuration.(package private) voidAbstractBindingBuilder.FactoryInstanceBasedBindingBuilder.complete(DynamicConfiguration configuration, HK2Loader defaultLoader) (package private) voidAbstractBindingBuilder.FactoryTypeBasedBindingBuilder.complete(DynamicConfiguration configuration, HK2Loader defaultLoader) (package private) voidAbstractBindingBuilder.InstanceBasedBindingBuilder.complete(DynamicConfiguration configuration, HK2Loader defaultLoader) -
Uses of DynamicConfiguration in org.jvnet.hk2.internal
Classes in org.jvnet.hk2.internal that implement DynamicConfigurationModifier and TypeClassDescriptionclassThe 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 voidHK2Runner.addServicesFromDefault(DynamicConfiguration config, Set<String> excludes, Set<String> locatorFiles) private voidHK2Runner.addServicesFromPackage(DynamicConfiguration config, List<String> packages, Set<String> excludes) private voidHK2Runner.addServicesFromPathDirectory(DynamicConfiguration config, List<String> packages, File directory, Set<String> excludes) private voidHK2Runner.addServicesFromPathElement(DynamicConfiguration config, List<String> packages, String element, Set<String> excludes) private voidHK2Runner.addServicesFromPathJar(DynamicConfiguration config, List<String> packages, File jar, Set<String> excludes) voidServiceLocatorTestRule.bind(DynamicConfiguration dynamicConfiguration) Called at the appropriate time by theServiceLocatorTestRule.configureServiceLocator(ServiceLocator, Description)method in case subclasses wish to add services to theServiceLocatorbeing configured.private static final voidServiceLocatorTestRule.bind(DynamicConfiguration configuration, BufferedReader reader) Reads the HK2 locator file represented by the suppliedBufferedReaderand binds theDescriptors it represents.private final voidServiceLocatorTestRule.bind(DynamicConfiguration configuration, AnnotatedElement element) Retrieves anyAnnotations found on the suppliedAnnotatedElementand calls theServiceLocatorTestRule.bind(DynamicConfiguration, Collection)method supplying them as the second parameter.private static final voidServiceLocatorTestRule.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 voidServiceLocatorTestRule.bind(DynamicConfiguration configuration, URL locatorResource) Opens anInputStreamto the suppliedURL, wraps aBufferedReaderaround it, and calls theServiceLocatorTestRule.bind(DynamicConfiguration, BufferedReader)method.private final voidServiceLocatorTestRule.bind(DynamicConfiguration configuration, Collection<? extends Annotation> annotations) Recursively examines theAnnotations supplied looking for instances of theClasses,InhabitantFilesandPackagesannotations, and, using the binding methods on the suppliedDynamicConfigurationbindsDescriptors for those "reachable" classes into the configuration.private final voidServiceLocatorTestRule.bind(DynamicConfiguration configuration, Set<String> packageNames) Binds allClasses "reachable" from the supplied packages.private final voidServiceLocatorTestRule.bind(DynamicConfiguration configuration, Classes classes) private static final voidServiceLocatorTestRule.bind(DynamicConfiguration configuration, InhabitantFiles inhabitantFiles) Gathers all classpath resource names found in the suppliedInhabitantFilesannotation representing HK2 locator files and calls theServiceLocatorTestRule.bind(DynamicConfiguration, String)method for each such entry found.private final voidServiceLocatorTestRule.bind(DynamicConfiguration configuration, Packages packages) voidHK2TestModule.configure(DynamicConfiguration config) Allows the test to easily configure their testprivate voidHK2Runner.internalAddServicesFromDefault(DynamicConfiguration config, Set<String> excludes, Set<String> locatorFiles) private voidHK2Runner.internalAddServicesFromPackage(DynamicConfiguration config, List<String> packages, Set<String> excludes) private voidHK2Runner.readResources(Enumeration<URL> resources, Set<String> excludes, DynamicConfiguration config)