Uses of Interface
org.glassfish.hk2.api.ServiceLocator
Packages that use ServiceLocator
Package
Description
-
Uses of ServiceLocator in com.sun.enterprise.module
Methods in com.sun.enterprise.module that return ServiceLocatorModifier and TypeMethodDescriptionModulesRegistry.createServiceLocator()Creates the defaultServiceLocatorfrom all the modules in this registry Calling this method has the same effect of calling}invalid @link
{@link #createServiceLocator("default")ModulesRegistry.createServiceLocator(String name) Creates aServiceLocatorfrom all the modules in this registry Cal;ling this method has the same effect of callingModulesRegistry.newServiceLocator()followed by}.invalid @link
{@link #populateServiceLocator(String, org.glassfish.hk2.api.ServiceLocator, java.util.ListModulesRegistry.createServiceLocator(ServiceLocator serviceLocator, String name, List<PopulatorPostProcessor> postProcessors) Creates aServiceLocatorwith the provided parent.ModulesRegistry.newServiceLocator()Creates an uninitializedServiceLocatorModulesRegistry.newServiceLocator(ServiceLocator parent) Methods in com.sun.enterprise.module with parameters of type ServiceLocatorModifier and TypeMethodDescriptionModulesRegistry.createServiceLocator(ServiceLocator serviceLocator, String name, List<PopulatorPostProcessor> postProcessors) Creates aServiceLocatorwith the provided parent.ModulesRegistry.newServiceLocator(ServiceLocator parent) voidModulesRegistry.populateConfig(ServiceLocator serviceLocator) voidModulesRegistry.populateServiceLocator(String name, ServiceLocator h, List<PopulatorPostProcessor> postProcessors) Populates aServiceLocatorfrom all the modules in this registry. -
Uses of ServiceLocator in com.sun.enterprise.module.bootstrap
Methods in com.sun.enterprise.module.bootstrap that return ServiceLocatorModifier and TypeMethodDescriptionMain.createServiceLocator(ModulesRegistry mr, StartupContext context, List<PopulatorPostProcessor> postProcessors, DescriptorFileFinder descriptorFileFinder) Main.getServiceLocator()Methods in com.sun.enterprise.module.bootstrap with parameters of type ServiceLocatorModifier and TypeMethodDescriptionprivate voidMain.addDescriptorFileFinder(ServiceLocator serviceLocator, DescriptorFileFinder descriptorFileFinder) Main.findStartupService(ModulesRegistry registry, ServiceLocator serviceLocator, String mainModuleName, StartupContext context) Return the ModuleStartup service configured to be used to start the system. -
Uses of ServiceLocator in com.sun.enterprise.module.common_impl
Fields in com.sun.enterprise.module.common_impl with type parameters of type ServiceLocatorModifier and TypeFieldDescriptionprivate Map<ServiceLocator, String> AbstractModulesRegistryImpl.habitats(package private) Map<Module, Map<ServiceLocator, List<ActiveDescriptor>>> AbstractModulesRegistryImpl.moduleDescriptorsMethods in com.sun.enterprise.module.common_impl that return ServiceLocatorModifier and TypeMethodDescriptionAbstractModulesRegistryImpl.createServiceLocator()AbstractModulesRegistryImpl.createServiceLocator(String name) AbstractModulesRegistryImpl.createServiceLocator(ServiceLocator parent, String name, List<PopulatorPostProcessor> postProcessors) AbstractModulesRegistryImpl.newServiceLocator()Creates an uninitializedServiceLocatorAbstractModulesRegistryImpl.newServiceLocator(ServiceLocator parent) Create a new ServiceLocator optionally providing a parent ServicesMethods in com.sun.enterprise.module.common_impl that return types with arguments of type ServiceLocatorModifier and TypeMethodDescriptionprotected Set<ServiceLocator> AbstractModulesRegistryImpl.getAllServiceLocators()Methods in com.sun.enterprise.module.common_impl with parameters of type ServiceLocatorModifier and TypeMethodDescriptionAbstractModulesRegistryImpl.createServiceLocator(ServiceLocator parent, String name, List<PopulatorPostProcessor> postProcessors) protected voidAbstractModulesRegistryImpl.initializeServiceLocator(ServiceLocator serviceLocator) AbstractModulesRegistryImpl.newServiceLocator(ServiceLocator parent) Create a new ServiceLocator optionally providing a parent Servicesprotected abstract List<ActiveDescriptor> AbstractModulesRegistryImpl.parseInhabitants(Module module, String name, ServiceLocator serviceLocator, List<PopulatorPostProcessor> postProcessors) voidAbstractModulesRegistryImpl.populateConfig(ServiceLocator serviceLocator) voidAbstractModulesRegistryImpl.populateServiceLocator(String name, ServiceLocator serviceLocator, List<PopulatorPostProcessor> postProcessors) Creates aServiceLocatorfrom all the modules in this registry -
Uses of ServiceLocator in com.sun.enterprise.module.impl
Methods in com.sun.enterprise.module.impl with parameters of type ServiceLocatorModifier and TypeMethodDescriptionprotected List<ActiveDescriptor> ModulesRegistryImpl.parseInhabitants(Module module, String name, ServiceLocator serviceLocator, List<PopulatorPostProcessor> postProcessors) -
Uses of ServiceLocator in com.sun.enterprise.module.single
Methods in com.sun.enterprise.module.single that return ServiceLocatorMethods in com.sun.enterprise.module.single with parameters of type ServiceLocatorModifier and TypeMethodDescriptionprotected List<ActiveDescriptor> ClassPathBasedModulesRegistry.parseInhabitants(Module module, String name, ServiceLocator serviceLocator, List<PopulatorPostProcessor> postProcessors) protected List<ActiveDescriptor> SingleModulesRegistry.parseInhabitants(Module module, String name, ServiceLocator serviceLocator, List<PopulatorPostProcessor> postProcessors) voidStaticModulesRegistry.populateConfig(ServiceLocator serviceLocator) -
Uses of ServiceLocator in org.glassfish.hk2.api
Methods in org.glassfish.hk2.api that return ServiceLocatorModifier and TypeMethodDescriptionabstract ServiceLocatorCreates (or finds) a ServiceLocator.abstract ServiceLocatorServiceLocatorFactory.create(String name, ServiceLocator parent) Creates or finds a ServiceLocator.abstract ServiceLocatorServiceLocatorFactory.create(String name, ServiceLocator parent, ServiceLocatorGenerator generator) Creates or finds a ServiceLocator.abstract ServiceLocatorServiceLocatorFactory.create(String name, ServiceLocator parent, ServiceLocatorGenerator generator, ServiceLocatorFactory.CreatePolicy policy) Creates a ServiceLocator.abstract ServiceLocatorFinds the ServiceLocator with this nameServiceLocator.getParent()Gets the parent service locator for this locatorMethods in org.glassfish.hk2.api with parameters of type ServiceLocatorModifier and TypeMethodDescriptionabstract ServiceLocatorServiceLocatorFactory.create(String name, ServiceLocator parent) Creates or finds a ServiceLocator.abstract ServiceLocatorServiceLocatorFactory.create(String name, ServiceLocator parent, ServiceLocatorGenerator generator) Creates or finds a ServiceLocator.abstract ServiceLocatorServiceLocatorFactory.create(String name, ServiceLocator parent, ServiceLocatorGenerator generator, ServiceLocatorFactory.CreatePolicy policy) Creates a ServiceLocator.abstract voidServiceLocatorFactory.destroy(ServiceLocator locator) Removes the given ServiceLocatorvoidServiceLocatorListener.locatorAdded(ServiceLocator added) This method is called whenever a ServiceLocator has been added to the set of ServiceLocators.voidServiceLocatorListener.locatorDestroyed(ServiceLocator destroyed) This method is called whenever a ServiceLocator will be removed from the set of ServiceLocators.PopulatorPostProcessor.process(ServiceLocator serviceLocator, DescriptorImpl descriptorImpl) This method can be used to alter the descriptor read in.Method parameters in org.glassfish.hk2.api with type arguments of type ServiceLocatorModifier and TypeMethodDescriptionvoidServiceLocatorListener.initialize(Set<ServiceLocator> initialLocators) This method returns the complete list of named service locators at the time that this listener is registered. -
Uses of ServiceLocator in org.glassfish.hk2.bootstrap
Methods in org.glassfish.hk2.bootstrap with parameters of type ServiceLocatorModifier and TypeMethodDescriptionstatic voidHK2Populator.populate(ServiceLocator serviceLocator) This method can be used to populate the service locator with files that have been written out using theDescriptorImplwriteObject method, looking in the classpath to locate these filesstatic List<ActiveDescriptor> HK2Populator.populate(ServiceLocator serviceLocator, DescriptorFileFinder fileFinder, List<? extends PopulatorPostProcessor> postProcessors) This method can be used to populate the service locator with files that have been written out using theDescriptorImplwriteObject method.voidConfigPopulator.populateConfig(ServiceLocator serviceLocator) Called during the creation sequence of a service locator, and can be used to populate configuration datastatic voidHK2Populator.populateConfig(ServiceLocator serviceLocator) -
Uses of ServiceLocator in org.glassfish.hk2.bootstrap.impl
Methods in org.glassfish.hk2.bootstrap.impl with parameters of type ServiceLocatorModifier and TypeMethodDescriptionHk2LoaderPopulatorPostProcessor.process(ServiceLocator serviceLocator, DescriptorImpl descriptorImpl) Uses the given classloader to load the class from the descriptor -
Uses of ServiceLocator in org.glassfish.hk2.configuration.api
Methods in org.glassfish.hk2.configuration.api with parameters of type ServiceLocatorModifier and TypeMethodDescriptionstatic voidConfigurationUtilities.enableConfigurationSystem(ServiceLocator locator) Enables the Configuration subsystem of HK2. -
Uses of ServiceLocator in org.glassfish.hk2.configuration.hub.api
Methods in org.glassfish.hk2.configuration.hub.api with parameters of type ServiceLocatorModifier and TypeMethodDescriptionstatic voidManagerUtilities.enableConfigurationHub(ServiceLocator locator) This method will add the Hub service to the given service locator. -
Uses of ServiceLocator in org.glassfish.hk2.configuration.internal
Fields in org.glassfish.hk2.configuration.internal declared as ServiceLocatorModifier and TypeFieldDescriptionprivate ServiceLocatorChildInjectResolverImpl.locatorprivate final ServiceLocatorChildIterableImpl.locatorprivate ServiceLocatorConfigurationListener.locatorprivate final ServiceLocatorNoNameTypeFilter.locatorConstructors in org.glassfish.hk2.configuration.internal with parameters of type ServiceLocatorModifierConstructorDescription(package private)ChildIterableImpl(ServiceLocator locator, Type childType, String prefix, String separator) (package private)NoNameTypeFilter(ServiceLocator locator, String typeName, String instanceName) -
Uses of ServiceLocator in org.glassfish.hk2.configuration.persistence.properties
Methods in org.glassfish.hk2.configuration.persistence.properties with parameters of type ServiceLocatorModifier and TypeMethodDescriptionstatic voidPropertyFileUtilities.enablePropertyFileService(ServiceLocator locator) This class adds the system implementation ofPropertyFileServiceto the given service locator. -
Uses of ServiceLocator in org.glassfish.hk2.extension
Methods in org.glassfish.hk2.extension that return ServiceLocatorModifier and TypeMethodDescriptionServiceLocatorGenerator.create(String name, ServiceLocator parent) Creates the ServiceLocator that will be used to generate the ServiceLocatorsMethods in org.glassfish.hk2.extension with parameters of type ServiceLocatorModifier and TypeMethodDescriptionServiceLocatorGenerator.create(String name, ServiceLocator parent) Creates the ServiceLocator that will be used to generate the ServiceLocators -
Uses of ServiceLocator in org.glassfish.hk2.extras
Methods in org.glassfish.hk2.extras with parameters of type ServiceLocatorModifier and TypeMethodDescriptionstatic voidExtrasUtilities.bridgeServiceLocator(ServiceLocator into, ServiceLocator from) This method will bridge all non-local services from the from ServiceLocator into the into ServiceLocator.private static voidExtrasUtilities.checkParentage(ServiceLocator a, ServiceLocator b) static voidExtrasUtilities.enableDefaultInterceptorServiceImplementation(ServiceLocator locator) This method adds in a default implementation of theInterceptionServicewhich uses annotations to denote which services should intercept other services.static voidExtrasUtilities.enableOperations(ServiceLocator locator) This method adds in the infrastructure necessary to enable HK2 Operations support.static voidExtrasUtilities.enableTopicDistribution(ServiceLocator locator) This method will enable the default topic distribution service.private static StringExtrasUtilities.getBridgeName(ServiceLocator into, ServiceLocator from) static voidExtrasUtilities.unbridgeServiceLocator(ServiceLocator into, ServiceLocator from) This method will remove all non-local services from the from ServiceLocator into the into ServiceLocator. -
Uses of ServiceLocator in org.glassfish.hk2.extras.events.internal
Fields in org.glassfish.hk2.extras.events.internal declared as ServiceLocatorMethods in org.glassfish.hk2.extras.events.internal with parameters of type ServiceLocatorModifier and TypeMethodDescriptionprivate voidDefaultTopicDistributionService.fire(Object message, Method subscription, DefaultTopicDistributionService.SubscriberInfo subscriptionInfo, Object target, ServiceLocator locator) -
Uses of ServiceLocator in org.glassfish.hk2.extras.hk2bridge.internal
Fields in org.glassfish.hk2.extras.hk2bridge.internal declared as ServiceLocatorModifier and TypeFieldDescriptionprivate final ServiceLocatorHk2BridgeImpl.localprivate ServiceLocatorHk2BridgeImpl.remoteprivate final ServiceLocatorCrossOverDescriptor.remoteLocatorMethods in org.glassfish.hk2.extras.hk2bridge.internal with parameters of type ServiceLocatorConstructors in org.glassfish.hk2.extras.hk2bridge.internal with parameters of type ServiceLocatorModifierConstructorDescriptionCrossOverDescriptor(ServiceLocator local, ActiveDescriptor<T> localService) privateHk2BridgeImpl(ServiceLocator local) -
Uses of ServiceLocator in org.glassfish.hk2.extras.interception.internal
Fields in org.glassfish.hk2.extras.interception.internal declared as ServiceLocator -
Uses of ServiceLocator in org.glassfish.hk2.extras.operation.internal
Fields in org.glassfish.hk2.extras.operation.internal declared as ServiceLocatorModifier and TypeFieldDescriptionprivate ServiceLocatorOperationManagerImpl.locatorprivate final ServiceLocatorSingleOperationManager.locatorConstructors in org.glassfish.hk2.extras.operation.internal with parameters of type ServiceLocatorModifierConstructorDescription(package private)OperationHandleImpl(SingleOperationManager<T> parent, OperationIdentifier<T> identifier, Object operationLock, ServiceLocator locator) (package private)SingleOperationManager(T scope, ServiceLocator locator) -
Uses of ServiceLocator in org.glassfish.hk2.internal
Fields in org.glassfish.hk2.internal declared as ServiceLocatorFields in org.glassfish.hk2.internal with type parameters of type ServiceLocatorModifier and TypeFieldDescriptionprivate final HashMap<String, ServiceLocator> ServiceLocatorFactoryImpl.serviceLocatorsMethods in org.glassfish.hk2.internal that return ServiceLocatorModifier and TypeMethodDescriptionServiceLocatorFactoryImpl.create(String name, ServiceLocator parent) ServiceLocatorFactoryImpl.create(String name, ServiceLocator parent, ServiceLocatorGenerator generator) ServiceLocatorFactoryImpl.create(String name, ServiceLocator parent, ServiceLocatorGenerator generator, ServiceLocatorFactory.CreatePolicy policy) private ServiceLocatorServiceLocatorFactoryImpl.internalCreate(String name, ServiceLocator parent, ServiceLocatorGenerator generator) Methods in org.glassfish.hk2.internal with parameters of type ServiceLocatorModifier and TypeMethodDescriptionprivate voidServiceLocatorFactoryImpl.callListenerAdded(ServiceLocator added) ServiceLocatorFactoryImpl.create(String name, ServiceLocator parent) ServiceLocatorFactoryImpl.create(String name, ServiceLocator parent, ServiceLocatorGenerator generator) ServiceLocatorFactoryImpl.create(String name, ServiceLocator parent, ServiceLocatorGenerator generator, ServiceLocatorFactory.CreatePolicy policy) private voidServiceLocatorFactoryImpl.destroy(String name, ServiceLocator locator) voidServiceLocatorFactoryImpl.destroy(ServiceLocator locator) private ServiceLocatorServiceLocatorFactoryImpl.internalCreate(String name, ServiceLocator parent, ServiceLocatorGenerator generator) Constructors in org.glassfish.hk2.internal with parameters of type ServiceLocatorModifierConstructorDescriptionprivateImmediateHelper(ServiceLocator serviceLocator, ImmediateContext immediateContext) -
Uses of ServiceLocator in org.glassfish.hk2.runlevel
Methods in org.glassfish.hk2.runlevel with parameters of type ServiceLocatorModifier and TypeMethodDescriptionstatic voidRunLevelServiceUtilities.enableRunLevelService(ServiceLocator locator) Enables the RunLevelService in the givenServiceLocator. -
Uses of ServiceLocator in org.glassfish.hk2.runlevel.internal
Fields in org.glassfish.hk2.runlevel.internal declared as ServiceLocatorModifier and TypeFieldDescriptionprivate final ServiceLocatorAsyncRunLevelContext.locatorprivate final ServiceLocatorCurrentTaskFuture.DownQueueRunner.locatorprivate final ServiceLocatorCurrentTaskFuture.locatorprivate final ServiceLocatorCurrentTaskFuture.QueueRunner.locatorConstructors in org.glassfish.hk2.runlevel.internal with parameters of type ServiceLocatorModifierConstructorDescriptionprivateAsyncRunLevelContext(ServiceLocator locator) Constructor for the guy who does the work(package private)CurrentTaskFuture(AsyncRunLevelContext asyncContext, Executor executor, ServiceLocator locator, int proposedLevel, int maxThreads, boolean useThreads, long cancelTimeout, Timer timer) privateDownQueueRunner(Object queueLock, List<ActiveDescriptor<?>> queue, CurrentTaskFuture.DownAllTheWay parent, ServiceLocator locator) privateQueueRunner(ServiceLocator locator, AsyncRunLevelContext asyncContext, Object queueLock, List<ServiceHandle<?>> queue, CurrentTaskFuture.UpOneLevel parent, Object parentLock, int maxThreads) -
Uses of ServiceLocator in org.glassfish.hk2.runlevel.utilities
Methods in org.glassfish.hk2.runlevel.utilities with parameters of type ServiceLocatorModifier and TypeMethodDescriptionstatic intUtilities.getRunLevelMode(ServiceLocator locator, Descriptor descriptor, Integer modeOverride) Get the run level mode from the metadata of the given descriptor.static intUtilities.getRunLevelValue(ServiceLocator locator, Descriptor descriptor) Get the run level value from the metadata of the given descriptor. -
Uses of ServiceLocator in org.glassfish.hk2.utilities
Fields in org.glassfish.hk2.utilities declared as ServiceLocatorModifier and TypeFieldDescriptionprivate ServiceLocatorAliasDescriptor.locatorThe service locator.private final ServiceLocatorGreedyResolver.locatorprivate final ServiceLocatorImmediateContext.locatorMethods in org.glassfish.hk2.utilities that return ServiceLocatorModifier and TypeMethodDescriptionstatic ServiceLocatorThis method will create or find a ServiceLocator with the given name and bind all of the binders given together in a single config transaction.static ServiceLocatorThis method will create or find a ServiceLocator with the name "default" and bind all of the binders given together in a single config transaction.static ServiceLocatorServiceLocatorUtilities.createAndPopulateServiceLocator()This method is often the first line of a stand-alone client that wishes to use HK2.static ServiceLocatorServiceLocatorUtilities.createAndPopulateServiceLocator(String name) This method is often the first line of a stand-alone client that wishes to use HK2.Methods in org.glassfish.hk2.utilities with parameters of type ServiceLocatorModifier and TypeMethodDescriptionstatic List<ActiveDescriptor<?>> ServiceLocatorUtilities.addClasses(ServiceLocator locator, boolean idempotent, Class<?>... toAdd) It is very often the case that one wishes to add classes that hk2 will automatically analyze for contracts and qualifiers to a service locator.static List<ActiveDescriptor<?>> ServiceLocatorUtilities.addClasses(ServiceLocator locator, Class<?>... toAdd) It is very often the case that one wishes to add classes that hk2 will automatically analyze for contracts and qualifiers to a service locator.static List<FactoryDescriptors> ServiceLocatorUtilities.addFactoryConstants(ServiceLocator locator, Factory<?>... constants) This method adds factory constants to the given locator.static List<FactoryDescriptors> ServiceLocatorUtilities.addFactoryDescriptors(ServiceLocator locator, boolean requiresDeepCopy, FactoryDescriptors... factories) Adds the given factory descriptors to the service locatorstatic List<FactoryDescriptors> ServiceLocatorUtilities.addFactoryDescriptors(ServiceLocator locator, FactoryDescriptors... factories) Adds the given factory descriptors to the service locatorstatic <T> ActiveDescriptor<T> ServiceLocatorUtilities.addOneConstant(ServiceLocator locator, Object constant) This method adds one existing object to the given service locator.static <T> ActiveDescriptor<T> ServiceLocatorUtilities.addOneConstant(ServiceLocator locator, Object constant, String name, Type... contracts) This method adds one existing object to the given service locator.static <T> ActiveDescriptor<T> ServiceLocatorUtilities.addOneDescriptor(ServiceLocator locator, Descriptor descriptor) It is very often the case that one wishes to add a single descriptor to a service locator.static <T> ActiveDescriptor<T> ServiceLocatorUtilities.addOneDescriptor(ServiceLocator locator, Descriptor descriptor, boolean requiresDeepCopy) It is very often the case that one wishes to add a single descriptor to a service locator.static voidServiceLocatorUtilities.bind(ServiceLocator locator, Binder... binders) This method will bind all of the binders given together in a single config transaction.static DynamicConfigurationServiceLocatorUtilities.createDynamicConfiguration(ServiceLocator locator) This method returns aDynamicConfigurationfor use with adding and removing services to the givenServiceLocator.static voidServiceLocatorUtilities.dumpAllDescriptors(ServiceLocator locator) Dumps all descriptors in this ServiceLocator to stderrstatic voidServiceLocatorUtilities.dumpAllDescriptors(ServiceLocator locator, PrintStream output) Dumps all descriptors in this ServiceLocator to the given PrintStreamstatic voidServiceLocatorUtilities.enableGreedyResolution(ServiceLocator locator) Enables greedy service resolution in this service locator by adding theGreedyResolverinto the service locator.static voidServiceLocatorUtilities.enableImmediateScope(ServiceLocator locator) This method will add the ability to use theImmediatescope to the given locator.static ImmediateControllerServiceLocatorUtilities.enableImmediateScopeSuspended(ServiceLocator locator) This method will add the ability to use theImmediatescope to the given locator.static voidServiceLocatorUtilities.enableInheritableThreadScope(ServiceLocator locator) This method will add the ability to use theInheritableThreadscope to the given locator.static voidServiceLocatorUtilities.enableLookupExceptions(ServiceLocator locator) This method will cause lookup operations to throw exceptions when exceptions are encountered in underlying operations such as classloading.static voidServiceLocatorUtilities.enablePerThreadScope(ServiceLocator locator) This method will add the ability to use thePerThreadscope to the given locator.static voidServiceLocatorUtilities.enableTopicDistribution(ServiceLocator locator) Deprecated.Use ExtrasUtilities.enableTopicDistribution.static <T> ActiveDescriptor<T> ServiceLocatorUtilities.findOneDescriptor(ServiceLocator locator, Descriptor descriptor) Finds a descriptor in the given service locator.static <T> TServiceLocatorUtilities.findOrCreateService(ServiceLocator locator, Class<T> type, Annotation... qualifiers) This method will first attempt to find a service corresponding to the type and qualifiers passed in to the method, and if one is found simply returns it.static <T> TServiceLocatorUtilities.getService(ServiceLocator locator, String className) Returns the best service matching the passed in fully qualified class name of the servicestatic <T> TServiceLocatorUtilities.getService(ServiceLocator locator, Descriptor descriptor) Returns the service in this service locator given the current descriptor.private DescriptorImplDuplicatePostProcessor.implementationOnly(ServiceLocator serviceLocator, DescriptorImpl descriptorImpl) ClassLoaderPostProcessor.process(ServiceLocator serviceLocator, DescriptorImpl descriptorImpl) DuplicatePostProcessor.process(ServiceLocator serviceLocator, DescriptorImpl descriptorImpl) static voidServiceLocatorUtilities.removeFilter(ServiceLocator locator, Filter filter) Removes all the descriptors from the given locator that match the given filterstatic voidServiceLocatorUtilities.removeFilter(ServiceLocator locator, Filter filter, boolean includeAliasDescriptors) Removes all the descriptors from the given locator that match the given filterstatic voidServiceLocatorUtilities.removeOneDescriptor(ServiceLocator locator, Descriptor descriptor) This method will attempt to remove descriptors matching the passed in descriptor from the given locator.static voidServiceLocatorUtilities.removeOneDescriptor(ServiceLocator locator, Descriptor descriptor, boolean includeAliasDescriptors) This method will attempt to remove descriptors matching the passed in descriptor from the given locator.private DescriptorImplDuplicatePostProcessor.strict(ServiceLocator serviceLocator, DescriptorImpl descriptorImpl) Constructors in org.glassfish.hk2.utilities with parameters of type ServiceLocatorModifierConstructorDescriptionAliasDescriptor(ServiceLocator locator, ActiveDescriptor<T> descriptor, String contract, String name) Construct an AliasDescriptor.privateGreedyResolver(ServiceLocator locator) privateImmediateContext(ServiceLocator locator) -
Uses of ServiceLocator in org.jvnet.hk2.external.generator
Methods in org.jvnet.hk2.external.generator that return ServiceLocatorModifier and TypeMethodDescriptionServiceLocatorGeneratorImpl.create(String name, ServiceLocator parent) Methods in org.jvnet.hk2.external.generator with parameters of type ServiceLocatorModifier and TypeMethodDescriptionServiceLocatorGeneratorImpl.create(String name, ServiceLocator parent) private ServiceLocatorImplServiceLocatorGeneratorImpl.initialize(String name, ServiceLocator parent) -
Uses of ServiceLocator in org.jvnet.hk2.internal
Classes in org.jvnet.hk2.internal that implement ServiceLocatorFields in org.jvnet.hk2.internal declared as ServiceLocatorModifier and TypeFieldDescriptionprivate final ServiceLocatorFactoryCreator.locatorprivate final ServiceLocatorPopulatorImpl.serviceLocatorMethods in org.jvnet.hk2.internal that return ServiceLocatorMethods in org.jvnet.hk2.internal that return types with arguments of type ServiceLocatorModifier and TypeMethodDescriptionstatic ActiveDescriptor<ServiceLocator> Utilities.getLocatorDescriptor(ServiceLocator locator) Returns a constant ActiveDescriptor for the basic ServiceLocatorMethods in org.jvnet.hk2.internal with parameters of type ServiceLocatorModifier and TypeMethodDescriptionstatic ActiveDescriptor<ServiceLocator> Utilities.getLocatorDescriptor(ServiceLocator locator) Returns a constant ActiveDescriptor for the basic ServiceLocatorprivate ImmediateResultsServiceLocatorImpl.narrow(ServiceLocator locator, List<SystemDescriptor<?>> candidates, Type requiredType, String name, Injectee injectee, boolean onlyOne, boolean doValidation, NarrowResults cachedResults, Filter filter, Annotation... qualifiers) private <T> TProxyUtilities.secureCreate(Class<?> superclass, Class<?>[] interfaces, javassist.util.proxy.MethodHandler callback, boolean useJDKProxy, ServiceLocator anchor) We put the anchor as the value even though we don't use it in order to make it easier to catch memory leaks here.Constructors in org.jvnet.hk2.internal with parameters of type ServiceLocatorModifierConstructorDescriptionprivate(package private)FactoryCreator(ServiceLocator locator, ActiveDescriptor<?> factoryDescriptor) (package private)PopulatorImpl(ServiceLocator serviceLocator, DynamicConfigurationService dcs) privateServiceLocatorRuntimeImpl(ServiceLocator locator) -
Uses of ServiceLocator in org.jvnet.hk2.testing.junit
Fields in org.jvnet.hk2.testing.junit declared as ServiceLocatorModifier and TypeFieldDescriptionprivate ServiceLocatorServiceLocatorTestRule.serviceLocatorTheServiceLocatorin effect for the currently executing JUnit test method.protected ServiceLocatorHK2Runner.testLocatorTest classes can use this service locator as their private test locatorMethods in org.jvnet.hk2.testing.junit that return ServiceLocatorModifier and TypeMethodDescriptionstatic ServiceLocatorHK2TestUtilities.create(String name, ServiceLocator parent, HK2TestModule... modules) Will create a ServiceLocator after doing test-specific bindings from the TestModulestatic ServiceLocatorHK2TestUtilities.create(String name, HK2TestModule... modules) protected ServiceLocatorServiceLocatorTestRule.createServiceLocator(org.junit.runner.Description testDescription) Creates and returns aServiceLocatorsuitable for the JUnit test described by the suppliedDescription.Methods in org.jvnet.hk2.testing.junit with parameters of type ServiceLocatorModifier and TypeMethodDescriptionprotected voidServiceLocatorTestRule.configureServiceLocator(ServiceLocator serviceLocator, org.junit.runner.Description testDescription) Configures the suppliedServiceLocatorfor use by the test described by the suppliedDescription.static ServiceLocatorHK2TestUtilities.create(String name, ServiceLocator parent, HK2TestModule... modules) Will create a ServiceLocator after doing test-specific bindings from the TestModuleprotected voidServiceLocatorTestRule.performDependencyInjection(ServiceLocator serviceLocator, T test) Performs HK2 dependency injection on thisServiceLocatorTestRuleand the supplied test instance, using the suppliedServiceLocatoras needed. -
Uses of ServiceLocator in org.jvnet.hk2.testing.junit.internal
Fields in org.jvnet.hk2.testing.junit.internal declared as ServiceLocatorConstructors in org.jvnet.hk2.testing.junit.internal with parameters of type ServiceLocatorModifierConstructorDescriptionClassVisitorImpl(ServiceLocator locator, boolean verbose, Set<String> excludes) Creates this with the config to add to if this is a service