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 DynamicConfigurationDynamicConfigurationService. 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 classTopicDistributionModuleThis 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 classRunLevelServiceModuleThis 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 classEnableLookupExceptionsModuleThis module can be used to enable exceptions to be thrown from getService API when a descriptor throws an exception during reification or other errors.classImmediateScopeModuleThis module can be used to enable theImmediatescope feature.classInheritableThreadScopeModuleThis module can be used to enable theInheritableThreadscope feature.classPerThreadScopeModuleThis module can be used to enable thePerThreadscope feature.Methods in org.glassfish.hk2.utilities that return DynamicConfiguration Modifier and Type Method Description static 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 DynamicConfiguration Modifier and Type Method Description voidBinder. 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 classAbstractBinderSkeleton 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 DynamicConfigurationAbstractBinder. configurationMethods in org.glassfish.hk2.utilities.binding that return DynamicConfiguration Modifier and Type Method Description private DynamicConfigurationAbstractBinder. configuration()Get the activebinder factoryinstance used for binding configuration.Methods in org.glassfish.hk2.utilities.binding with parameters of type DynamicConfiguration Modifier and Type Method Description static 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 DynamicConfiguration Modifier and Type Class Description classDynamicConfigurationImplThe system implementation of the DynamicConfiguration serviceMethods in org.jvnet.hk2.internal that return DynamicConfiguration Modifier and Type Method Description DynamicConfigurationDynamicConfigurationServiceImpl. 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 voidHK2Runner. addServicesFromDefault(DynamicConfiguration config, java.util.Set<java.lang.String> excludes, java.util.Set<java.lang.String> locatorFiles)private voidHK2Runner. addServicesFromPackage(DynamicConfiguration config, java.util.List<java.lang.String> packages, java.util.Set<java.lang.String> excludes)private voidHK2Runner. addServicesFromPathDirectory(DynamicConfiguration config, java.util.List<java.lang.String> packages, java.io.File directory, java.util.Set<java.lang.String> excludes)private voidHK2Runner. addServicesFromPathElement(DynamicConfiguration config, java.util.List<java.lang.String> packages, java.lang.String element, java.util.Set<java.lang.String> excludes)private voidHK2Runner. addServicesFromPathJar(DynamicConfiguration config, java.util.List<java.lang.String> packages, java.io.File jar, java.util.Set<java.lang.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 voidServiceLocatorTestRule. bind(DynamicConfiguration configuration, java.io.BufferedReader reader)Reads the HK2 locator file represented by the suppliedBufferedReaderand binds theDescriptors it represents.private voidServiceLocatorTestRule. bind(DynamicConfiguration configuration, java.lang.reflect.AnnotatedElement element)Retrieves anyAnnotations found on the suppliedAnnotatedElementand calls theServiceLocatorTestRule.bind(DynamicConfiguration, Collection)method supplying them as the second parameter.private static voidServiceLocatorTestRule. 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 voidServiceLocatorTestRule. bind(DynamicConfiguration configuration, java.net.URL locatorResource)Opens anInputStreamto the suppliedURL, wraps aBufferedReaderaround it, and calls theServiceLocatorTestRule.bind(DynamicConfiguration, BufferedReader)method.private voidServiceLocatorTestRule. bind(DynamicConfiguration configuration, java.util.Collection<? extends java.lang.annotation.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 voidServiceLocatorTestRule. bind(DynamicConfiguration configuration, java.util.Set<java.lang.String> packageNames)Binds allClasses "reachable" from the supplied packages.private voidServiceLocatorTestRule. bind(DynamicConfiguration configuration, Classes classes)Binds allClasses "reachable" from the suppliedClassesannotation.private static 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 voidServiceLocatorTestRule. bind(DynamicConfiguration configuration, Packages packages)Binds allClasses "reachable" from packages described by the suppliedPackagesannotation.voidHK2TestModule. configure(DynamicConfiguration config)Allows the test to easily configure their testprivate voidHK2Runner. internalAddServicesFromDefault(DynamicConfiguration config, java.util.Set<java.lang.String> excludes, java.util.Set<java.lang.String> locatorFiles)private voidHK2Runner. internalAddServicesFromPackage(DynamicConfiguration config, java.util.List<java.lang.String> packages, java.util.Set<java.lang.String> excludes)private voidHK2Runner. readResources(java.util.Enumeration<java.net.URL> resources, java.util.Set<java.lang.String> excludes, DynamicConfiguration config)
-