Modifier and Type | Method and Description |
---|---|
ServiceLocator |
ModulesRegistry.createServiceLocator()
Creates the default
ServiceLocator from all the modules in this registry
Calling this method has the same effect of calling #createServiceLocator("default") |
ServiceLocator |
ModulesRegistry.createServiceLocator(ServiceLocator serviceLocator,
java.lang.String name,
java.util.List<PopulatorPostProcessor> postProcessors)
Creates a
ServiceLocator with the provided parent. |
ServiceLocator |
ModulesRegistry.createServiceLocator(java.lang.String name)
Creates a
ServiceLocator from all the modules in this registry
Cal;ling this method has the same effect of calling ModulesRegistry.newServiceLocator() followed by
#populateServiceLocator(String, org.glassfish.hk2.api.ServiceLocator, java.util.List . |
ServiceLocator |
ModulesRegistry.newServiceLocator()
Creates an uninitialized
ServiceLocator |
ServiceLocator |
ModulesRegistry.newServiceLocator(ServiceLocator parent) |
Modifier and Type | Method and Description |
---|---|
ServiceLocator |
ModulesRegistry.createServiceLocator(ServiceLocator serviceLocator,
java.lang.String name,
java.util.List<PopulatorPostProcessor> postProcessors)
Creates a
ServiceLocator with the provided parent. |
ServiceLocator |
ModulesRegistry.newServiceLocator(ServiceLocator parent) |
void |
ModulesRegistry.populateConfig(ServiceLocator serviceLocator) |
void |
ModulesRegistry.populateServiceLocator(java.lang.String name,
ServiceLocator h,
java.util.List<PopulatorPostProcessor> postProcessors)
Populates a
ServiceLocator from all the modules in this registry. |
Modifier and Type | Method and Description |
---|---|
ServiceLocator |
Main.createServiceLocator(ModulesRegistry mr,
StartupContext context,
java.util.List<PopulatorPostProcessor> postProcessors,
DescriptorFileFinder descriptorFileFinder) |
ServiceLocator |
Main.getServiceLocator() |
Modifier and Type | Method and Description |
---|---|
private void |
Main.addDescriptorFileFinder(ServiceLocator serviceLocator,
DescriptorFileFinder descriptorFileFinder) |
ModuleStartup |
Main.findStartupService(ModulesRegistry registry,
ServiceLocator serviceLocator,
java.lang.String mainModuleName,
StartupContext context)
Return the ModuleStartup service configured to be used to start the
system.
|
Modifier and Type | Field and Description |
---|---|
private java.util.Map<ServiceLocator,java.lang.String> |
AbstractModulesRegistryImpl.habitats |
(package private) java.util.Map<Module,java.util.Map<ServiceLocator,java.util.List<ActiveDescriptor>>> |
AbstractModulesRegistryImpl.moduleDescriptors |
Modifier and Type | Method and Description |
---|---|
ServiceLocator |
AbstractModulesRegistryImpl.createServiceLocator() |
ServiceLocator |
AbstractModulesRegistryImpl.createServiceLocator(ServiceLocator parent,
java.lang.String name,
java.util.List<PopulatorPostProcessor> postProcessors) |
ServiceLocator |
AbstractModulesRegistryImpl.createServiceLocator(java.lang.String name) |
ServiceLocator |
AbstractModulesRegistryImpl.newServiceLocator()
Creates an uninitialized
ServiceLocator |
ServiceLocator |
AbstractModulesRegistryImpl.newServiceLocator(ServiceLocator parent)
Create a new ServiceLocator optionally providing a parent Services
|
Modifier and Type | Method and Description |
---|---|
protected java.util.Set<ServiceLocator> |
AbstractModulesRegistryImpl.getAllServiceLocators() |
Modifier and Type | Method and Description |
---|---|
ServiceLocator |
AbstractModulesRegistryImpl.createServiceLocator(ServiceLocator parent,
java.lang.String name,
java.util.List<PopulatorPostProcessor> postProcessors) |
protected void |
AbstractModulesRegistryImpl.initializeServiceLocator(ServiceLocator serviceLocator) |
ServiceLocator |
AbstractModulesRegistryImpl.newServiceLocator(ServiceLocator parent)
Create a new ServiceLocator optionally providing a parent Services
|
protected abstract java.util.List<ActiveDescriptor> |
AbstractModulesRegistryImpl.parseInhabitants(Module module,
java.lang.String name,
ServiceLocator serviceLocator,
java.util.List<PopulatorPostProcessor> postProcessors) |
void |
AbstractModulesRegistryImpl.populateConfig(ServiceLocator serviceLocator) |
void |
AbstractModulesRegistryImpl.populateServiceLocator(java.lang.String name,
ServiceLocator serviceLocator,
java.util.List<PopulatorPostProcessor> postProcessors)
Creates a
ServiceLocator from all the modules in this registry |
Modifier and Type | Method and Description |
---|---|
protected java.util.List<ActiveDescriptor> |
ModulesRegistryImpl.parseInhabitants(Module module,
java.lang.String name,
ServiceLocator serviceLocator,
java.util.List<PopulatorPostProcessor> postProcessors) |
Modifier and Type | Method and Description |
---|---|
ServiceLocator |
StaticModulesRegistry.createServiceLocator(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
protected java.util.List<ActiveDescriptor> |
SingleModulesRegistry.parseInhabitants(Module module,
java.lang.String name,
ServiceLocator serviceLocator,
java.util.List<PopulatorPostProcessor> postProcessors) |
protected java.util.List<ActiveDescriptor> |
ClassPathBasedModulesRegistry.parseInhabitants(Module module,
java.lang.String name,
ServiceLocator serviceLocator,
java.util.List<PopulatorPostProcessor> postProcessors) |
void |
StaticModulesRegistry.populateConfig(ServiceLocator serviceLocator) |
Modifier and Type | Method and Description |
---|---|
abstract ServiceLocator |
ServiceLocatorFactory.create(java.lang.String name)
Creates (or finds) a ServiceLocator.
|
abstract ServiceLocator |
ServiceLocatorFactory.create(java.lang.String name,
ServiceLocator parent)
Creates or finds a ServiceLocator.
|
abstract ServiceLocator |
ServiceLocatorFactory.create(java.lang.String name,
ServiceLocator parent,
ServiceLocatorGenerator generator)
Creates or finds a ServiceLocator.
|
abstract ServiceLocator |
ServiceLocatorFactory.create(java.lang.String name,
ServiceLocator parent,
ServiceLocatorGenerator generator,
ServiceLocatorFactory.CreatePolicy policy)
Creates a ServiceLocator.
|
abstract ServiceLocator |
ServiceLocatorFactory.find(java.lang.String name)
Finds the ServiceLocator with this name
|
ServiceLocator |
ServiceLocator.getParent()
Gets the parent service locator for this locator
|
Modifier and Type | Method and Description |
---|---|
abstract ServiceLocator |
ServiceLocatorFactory.create(java.lang.String name,
ServiceLocator parent)
Creates or finds a ServiceLocator.
|
abstract ServiceLocator |
ServiceLocatorFactory.create(java.lang.String name,
ServiceLocator parent,
ServiceLocatorGenerator generator)
Creates or finds a ServiceLocator.
|
abstract ServiceLocator |
ServiceLocatorFactory.create(java.lang.String name,
ServiceLocator parent,
ServiceLocatorGenerator generator,
ServiceLocatorFactory.CreatePolicy policy)
Creates a ServiceLocator.
|
abstract void |
ServiceLocatorFactory.destroy(ServiceLocator locator)
Removes the given ServiceLocator
|
void |
ServiceLocatorListener.locatorAdded(ServiceLocator added)
This method is called whenever a ServiceLocator has been
added to the set of ServiceLocators.
|
void |
ServiceLocatorListener.locatorDestroyed(ServiceLocator destroyed)
This method is called whenever a ServiceLocator will be
removed from the set of ServiceLocators.
|
DescriptorImpl |
PopulatorPostProcessor.process(ServiceLocator serviceLocator,
DescriptorImpl descriptorImpl)
This method can be used to alter the descriptor read in.
|
Modifier and Type | Method and Description |
---|---|
void |
ServiceLocatorListener.initialize(java.util.Set<ServiceLocator> initialLocators)
This method returns the complete list of named service
locators at the time that this listener is registered.
|
Modifier and Type | Method and Description |
---|---|
static void |
HK2Populator.populate(ServiceLocator serviceLocator)
This method can be used to populate the service locator with files that
have been written out using the
DescriptorImpl writeObject method,
looking in the classpath to locate these files |
static java.util.List<ActiveDescriptor> |
HK2Populator.populate(ServiceLocator serviceLocator,
DescriptorFileFinder fileFinder,
java.util.List<? extends PopulatorPostProcessor> postProcessors)
This method can be used to populate the service locator with files that
have been written out using the
DescriptorImpl writeObject method. |
static void |
HK2Populator.populateConfig(ServiceLocator serviceLocator) |
void |
ConfigPopulator.populateConfig(ServiceLocator serviceLocator)
Called during the creation sequence of a service locator, and can be used
to populate configuration data
|
Modifier and Type | Method and Description |
---|---|
DescriptorImpl |
Hk2LoaderPopulatorPostProcessor.process(ServiceLocator serviceLocator,
DescriptorImpl descriptorImpl)
Uses the given classloader to load the class from the descriptor
|
Modifier and Type | Method and Description |
---|---|
static void |
ConfigurationUtilities.enableConfigurationSystem(ServiceLocator locator)
Enables the Configuration subsystem of HK2.
|
Modifier and Type | Method and Description |
---|---|
static void |
ManagerUtilities.enableConfigurationHub(ServiceLocator locator)
This method will add the Hub service to the given service locator.
|
Modifier and Type | Field and Description |
---|---|
private ServiceLocator |
NoNameTypeFilter.locator |
private ServiceLocator |
ChildInjectResolverImpl.locator |
private ServiceLocator |
ConfigurationListener.locator |
private ServiceLocator |
ChildIterableImpl.locator |
Constructor and Description |
---|
ChildIterableImpl(ServiceLocator locator,
java.lang.reflect.Type childType,
java.lang.String prefix,
java.lang.String separator) |
NoNameTypeFilter(ServiceLocator locator,
java.lang.String typeName,
java.lang.String instanceName) |
Modifier and Type | Method and Description |
---|---|
static void |
PropertyFileUtilities.enablePropertyFileService(ServiceLocator locator)
This class adds the system implementation of
PropertyFileService
to the given service locator. |
Modifier and Type | Method and Description |
---|---|
ServiceLocator |
ServiceLocatorGenerator.create(java.lang.String name,
ServiceLocator parent)
Creates the ServiceLocator that will be used to
generate the ServiceLocators
|
Modifier and Type | Method and Description |
---|---|
ServiceLocator |
ServiceLocatorGenerator.create(java.lang.String name,
ServiceLocator parent)
Creates the ServiceLocator that will be used to
generate the ServiceLocators
|
Modifier and Type | Method and Description |
---|---|
static void |
ExtrasUtilities.bridgeServiceLocator(ServiceLocator into,
ServiceLocator from)
This method will bridge all non-local services from the
from ServiceLocator into the into ServiceLocator.
|
private static void |
ExtrasUtilities.checkParentage(ServiceLocator a,
ServiceLocator b) |
static void |
ExtrasUtilities.enableDefaultInterceptorServiceImplementation(ServiceLocator locator)
This method adds in a default implementation of the
InterceptionService
which uses annotations to denote which services should intercept other services. |
static void |
ExtrasUtilities.enableOperations(ServiceLocator locator)
This method adds in the infrastructure necessary to enable HK2 Operations support.
|
static void |
ExtrasUtilities.enableTopicDistribution(ServiceLocator locator)
This method will enable the default topic distribution service.
|
private static java.lang.String |
ExtrasUtilities.getBridgeName(ServiceLocator into,
ServiceLocator from) |
static void |
ExtrasUtilities.unbridgeServiceLocator(ServiceLocator into,
ServiceLocator from)
This method will remove all non-local services from the
from ServiceLocator into the into ServiceLocator.
|
Modifier and Type | Field and Description |
---|---|
private ServiceLocator |
DefaultTopicDistributionService.locator |
Modifier and Type | Method and Description |
---|---|
private void |
DefaultTopicDistributionService.fire(java.lang.Object message,
java.lang.reflect.Method subscription,
DefaultTopicDistributionService.SubscriberInfo subscriptionInfo,
java.lang.Object target,
ServiceLocator locator) |
Modifier and Type | Field and Description |
---|---|
private ServiceLocator |
Hk2BridgeImpl.local |
private ServiceLocator |
Hk2BridgeImpl.remote |
private ServiceLocator |
CrossOverDescriptor.remoteLocator |
Modifier and Type | Method and Description |
---|---|
void |
Hk2BridgeImpl.setRemote(ServiceLocator remote) |
Constructor and Description |
---|
CrossOverDescriptor(ServiceLocator local,
ActiveDescriptor<T> localService) |
Hk2BridgeImpl(ServiceLocator local) |
Modifier and Type | Field and Description |
---|---|
private ServiceLocator |
DefaultInterceptionService.locator |
Modifier and Type | Field and Description |
---|---|
private ServiceLocator |
OperationManagerImpl.locator |
private ServiceLocator |
SingleOperationManager.locator |
Constructor and Description |
---|
OperationHandleImpl(SingleOperationManager<T> parent,
OperationIdentifier<T> identifier,
java.lang.Object operationLock,
ServiceLocator locator) |
SingleOperationManager(T scope,
ServiceLocator locator) |
Modifier and Type | Field and Description |
---|---|
private ServiceLocator |
ImmediateHelper.locator |
Modifier and Type | Field and Description |
---|---|
private java.util.HashMap<java.lang.String,ServiceLocator> |
ServiceLocatorFactoryImpl.serviceLocators |
Modifier and Type | Method and Description |
---|---|
ServiceLocator |
ServiceLocatorFactoryImpl.create(java.lang.String name) |
ServiceLocator |
ServiceLocatorFactoryImpl.create(java.lang.String name,
ServiceLocator parent) |
ServiceLocator |
ServiceLocatorFactoryImpl.create(java.lang.String name,
ServiceLocator parent,
ServiceLocatorGenerator generator) |
ServiceLocator |
ServiceLocatorFactoryImpl.create(java.lang.String name,
ServiceLocator parent,
ServiceLocatorGenerator generator,
ServiceLocatorFactory.CreatePolicy policy) |
ServiceLocator |
ServiceLocatorFactoryImpl.find(java.lang.String name) |
private ServiceLocator |
ServiceLocatorFactoryImpl.internalCreate(java.lang.String name,
ServiceLocator parent,
ServiceLocatorGenerator generator) |
Modifier and Type | Method and Description |
---|---|
private void |
ServiceLocatorFactoryImpl.callListenerAdded(ServiceLocator added) |
ServiceLocator |
ServiceLocatorFactoryImpl.create(java.lang.String name,
ServiceLocator parent) |
ServiceLocator |
ServiceLocatorFactoryImpl.create(java.lang.String name,
ServiceLocator parent,
ServiceLocatorGenerator generator) |
ServiceLocator |
ServiceLocatorFactoryImpl.create(java.lang.String name,
ServiceLocator parent,
ServiceLocatorGenerator generator,
ServiceLocatorFactory.CreatePolicy policy) |
void |
ServiceLocatorFactoryImpl.destroy(ServiceLocator locator) |
private void |
ServiceLocatorFactoryImpl.destroy(java.lang.String name,
ServiceLocator locator) |
private ServiceLocator |
ServiceLocatorFactoryImpl.internalCreate(java.lang.String name,
ServiceLocator parent,
ServiceLocatorGenerator generator) |
Constructor and Description |
---|
ImmediateHelper(ServiceLocator serviceLocator,
ImmediateContext immediateContext) |
Modifier and Type | Method and Description |
---|---|
static void |
RunLevelServiceUtilities.enableRunLevelService(ServiceLocator locator)
Enables the RunLevelService in the given
ServiceLocator . |
Modifier and Type | Field and Description |
---|---|
private ServiceLocator |
CurrentTaskFuture.locator |
private ServiceLocator |
CurrentTaskFuture.QueueRunner.locator |
private ServiceLocator |
CurrentTaskFuture.DownQueueRunner.locator |
private ServiceLocator |
AsyncRunLevelContext.locator |
Constructor and Description |
---|
AsyncRunLevelContext(ServiceLocator locator)
Constructor for the guy who does the work
|
CurrentTaskFuture(AsyncRunLevelContext asyncContext,
java.util.concurrent.Executor executor,
ServiceLocator locator,
int proposedLevel,
int maxThreads,
boolean useThreads,
long cancelTimeout,
java.util.Timer timer) |
DownQueueRunner(java.lang.Object queueLock,
java.util.List<ActiveDescriptor<?>> queue,
CurrentTaskFuture.DownAllTheWay parent,
ServiceLocator locator) |
QueueRunner(ServiceLocator locator,
AsyncRunLevelContext asyncContext,
java.lang.Object queueLock,
java.util.List<ServiceHandle<?>> queue,
CurrentTaskFuture.UpOneLevel parent,
java.lang.Object parentLock,
int maxThreads) |
Modifier and Type | Method and Description |
---|---|
static int |
Utilities.getRunLevelMode(ServiceLocator locator,
Descriptor descriptor,
java.lang.Integer modeOverride)
Get the run level mode from the metadata of the given descriptor.
|
static int |
Utilities.getRunLevelValue(ServiceLocator locator,
Descriptor descriptor)
Get the run level value from the metadata of the given descriptor.
|
Modifier and Type | Field and Description |
---|---|
private ServiceLocator |
ImmediateContext.locator |
private ServiceLocator |
GreedyResolver.locator |
private ServiceLocator |
AliasDescriptor.locator
The service locator.
|
Modifier and Type | Method and Description |
---|---|
static ServiceLocator |
ServiceLocatorUtilities.bind(Binder... binders)
This 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 ServiceLocator |
ServiceLocatorUtilities.bind(java.lang.String name,
Binder... binders)
This 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 ServiceLocator |
ServiceLocatorUtilities.createAndPopulateServiceLocator()
This method is often the first line of a stand-alone client that wishes to use HK2.
|
static ServiceLocator |
ServiceLocatorUtilities.createAndPopulateServiceLocator(java.lang.String name)
This method is often the first line of a stand-alone client that wishes to use HK2.
|
Modifier and Type | Method and Description |
---|---|
static java.util.List<ActiveDescriptor<?>> |
ServiceLocatorUtilities.addClasses(ServiceLocator locator,
boolean idempotent,
java.lang.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 java.util.List<ActiveDescriptor<?>> |
ServiceLocatorUtilities.addClasses(ServiceLocator locator,
java.lang.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 java.util.List<FactoryDescriptors> |
ServiceLocatorUtilities.addFactoryConstants(ServiceLocator locator,
Factory<?>... constants)
This method adds factory constants to the given locator.
|
static java.util.List<FactoryDescriptors> |
ServiceLocatorUtilities.addFactoryDescriptors(ServiceLocator locator,
boolean requiresDeepCopy,
FactoryDescriptors... factories)
Adds the given factory descriptors to the service locator
|
static java.util.List<FactoryDescriptors> |
ServiceLocatorUtilities.addFactoryDescriptors(ServiceLocator locator,
FactoryDescriptors... factories)
Adds the given factory descriptors to the service locator
|
static <T> ActiveDescriptor<T> |
ServiceLocatorUtilities.addOneConstant(ServiceLocator locator,
java.lang.Object constant)
This method adds one existing object to the given service locator.
|
static <T> ActiveDescriptor<T> |
ServiceLocatorUtilities.addOneConstant(ServiceLocator locator,
java.lang.Object constant,
java.lang.String name,
java.lang.reflect.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 void |
ServiceLocatorUtilities.bind(ServiceLocator locator,
Binder... binders)
This method will bind all of the binders given together in a
single config transaction.
|
static DynamicConfiguration |
ServiceLocatorUtilities.createDynamicConfiguration(ServiceLocator locator)
This method returns a
DynamicConfiguration for use with adding
and removing services to the given ServiceLocator . |
static void |
ServiceLocatorUtilities.dumpAllDescriptors(ServiceLocator locator)
Dumps all descriptors in this ServiceLocator to stderr
|
static void |
ServiceLocatorUtilities.dumpAllDescriptors(ServiceLocator locator,
java.io.PrintStream output)
Dumps all descriptors in this ServiceLocator to the given PrintStream
|
static void |
ServiceLocatorUtilities.enableGreedyResolution(ServiceLocator locator)
Enables greedy service resolution in this service locator by
adding the
GreedyResolver into the service locator. |
static void |
ServiceLocatorUtilities.enableImmediateScope(ServiceLocator locator)
This method will add the ability to use the
Immediate scope to
the given locator. |
static ImmediateController |
ServiceLocatorUtilities.enableImmediateScopeSuspended(ServiceLocator locator)
This method will add the ability to use the
Immediate scope to
the given locator. |
static void |
ServiceLocatorUtilities.enableInheritableThreadScope(ServiceLocator locator)
This method will add the ability to use the
InheritableThread
scope to the given locator. |
static void |
ServiceLocatorUtilities.enableLookupExceptions(ServiceLocator locator)
This method will cause lookup operations to throw exceptions when
exceptions are encountered in underlying operations such as
classloading.
|
static void |
ServiceLocatorUtilities.enablePerThreadScope(ServiceLocator locator)
This method will add the ability to use the
PerThread scope to
the given locator. |
static void |
ServiceLocatorUtilities.enableTopicDistribution(ServiceLocator locator)
Deprecated.
Use ExtrasUtilities.enableTopicDistribution. This method WILL BE REMOVED
in the next version of hk2
|
static <T> ActiveDescriptor<T> |
ServiceLocatorUtilities.findOneDescriptor(ServiceLocator locator,
Descriptor descriptor)
Finds a descriptor in the given service locator.
|
static <T> T |
ServiceLocatorUtilities.findOrCreateService(ServiceLocator locator,
java.lang.Class<T> type,
java.lang.annotation.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> T |
ServiceLocatorUtilities.getService(ServiceLocator locator,
Descriptor descriptor)
Returns the service in this service locator given the current descriptor.
|
static <T> T |
ServiceLocatorUtilities.getService(ServiceLocator locator,
java.lang.String className)
Returns the best service matching the passed in fully qualified
class name of the service
|
private DescriptorImpl |
DuplicatePostProcessor.implementationOnly(ServiceLocator serviceLocator,
DescriptorImpl descriptorImpl) |
DescriptorImpl |
DuplicatePostProcessor.process(ServiceLocator serviceLocator,
DescriptorImpl descriptorImpl) |
DescriptorImpl |
ClassLoaderPostProcessor.process(ServiceLocator serviceLocator,
DescriptorImpl descriptorImpl) |
static void |
ServiceLocatorUtilities.removeFilter(ServiceLocator locator,
Filter filter)
Removes all the descriptors from the given locator that match the
given filter
|
static void |
ServiceLocatorUtilities.removeFilter(ServiceLocator locator,
Filter filter,
boolean includeAliasDescriptors)
Removes all the descriptors from the given locator that match the
given filter
|
static void |
ServiceLocatorUtilities.removeOneDescriptor(ServiceLocator locator,
Descriptor descriptor)
This method will attempt to remove descriptors matching the passed in descriptor from
the given locator.
|
static void |
ServiceLocatorUtilities.removeOneDescriptor(ServiceLocator locator,
Descriptor descriptor,
boolean includeAliasDescriptors)
This method will attempt to remove descriptors matching the passed in descriptor from
the given locator.
|
private DescriptorImpl |
DuplicatePostProcessor.strict(ServiceLocator serviceLocator,
DescriptorImpl descriptorImpl) |
Constructor and Description |
---|
AliasDescriptor(ServiceLocator locator,
ActiveDescriptor<T> descriptor,
java.lang.String contract,
java.lang.String name)
Construct an AliasDescriptor.
|
GreedyResolver(ServiceLocator locator) |
ImmediateContext(ServiceLocator locator) |
Modifier and Type | Method and Description |
---|---|
ServiceLocator |
ServiceLocatorGeneratorImpl.create(java.lang.String name,
ServiceLocator parent) |
Modifier and Type | Method and Description |
---|---|
ServiceLocator |
ServiceLocatorGeneratorImpl.create(java.lang.String name,
ServiceLocator parent) |
private ServiceLocatorImpl |
ServiceLocatorGeneratorImpl.initialize(java.lang.String name,
ServiceLocator parent) |
Modifier and Type | Class and Description |
---|---|
class |
ServiceLocatorImpl |
Modifier and Type | Field and Description |
---|---|
private ServiceLocator |
FactoryCreator.locator |
private ServiceLocator |
PopulatorImpl.serviceLocator |
Modifier and Type | Method and Description |
---|---|
ServiceLocator |
ServiceLocatorImpl.getParent() |
Modifier and Type | Method and Description |
---|---|
static ActiveDescriptor<ServiceLocator> |
Utilities.getLocatorDescriptor(ServiceLocator locator)
Returns a constant ActiveDescriptor for the basic ServiceLocator
|
Modifier and Type | Method and Description |
---|---|
static ActiveDescriptor<ServiceLocator> |
Utilities.getLocatorDescriptor(ServiceLocator locator)
Returns a constant ActiveDescriptor for the basic ServiceLocator
|
private ImmediateResults |
ServiceLocatorImpl.narrow(ServiceLocator locator,
java.util.List<SystemDescriptor<?>> candidates,
java.lang.reflect.Type requiredType,
java.lang.String name,
Injectee injectee,
boolean onlyOne,
boolean doValidation,
NarrowResults cachedResults,
Filter filter,
java.lang.annotation.Annotation... qualifiers) |
private <T> T |
ProxyUtilities.secureCreate(java.lang.Class<?> superclass,
java.lang.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.
|
Constructor and Description |
---|
DynamicConfigurationServiceImpl(ServiceLocator locator) |
FactoryCreator(ServiceLocator locator,
ActiveDescriptor<?> factoryDescriptor) |
PopulatorImpl(ServiceLocator serviceLocator,
DynamicConfigurationService dcs) |
ServiceLocatorRuntimeImpl(ServiceLocator locator) |
Modifier and Type | Field and Description |
---|---|
private ServiceLocator |
ServiceLocatorTestRule.serviceLocator
The
ServiceLocator in effect for the currently executing
JUnit test method. |
protected ServiceLocator |
HK2Runner.testLocator
Test classes can use this service locator as their private test locator
|
Modifier and Type | Method and Description |
---|---|
static ServiceLocator |
HK2TestUtilities.create(java.lang.String name,
HK2TestModule... modules) |
static ServiceLocator |
HK2TestUtilities.create(java.lang.String name,
ServiceLocator parent,
HK2TestModule... modules)
Will create a ServiceLocator after doing test-specific bindings from the TestModule
|
protected ServiceLocator |
ServiceLocatorTestRule.createServiceLocator(org.junit.runner.Description testDescription)
Creates and returns a
ServiceLocator suitable for the
JUnit test described by the supplied Description . |
Modifier and Type | Method and Description |
---|---|
protected void |
ServiceLocatorTestRule.configureServiceLocator(ServiceLocator serviceLocator,
org.junit.runner.Description testDescription)
Configures the supplied
ServiceLocator for use by the
test described by the supplied Description . |
static ServiceLocator |
HK2TestUtilities.create(java.lang.String name,
ServiceLocator parent,
HK2TestModule... modules)
Will create a ServiceLocator after doing test-specific bindings from the TestModule
|
protected void |
ServiceLocatorTestRule.performDependencyInjection(ServiceLocator serviceLocator,
T test)
Performs HK2 dependency injection on this
ServiceLocatorTestRule and the supplied test instance, using the
supplied ServiceLocator as needed. |
Modifier and Type | Field and Description |
---|---|
private ServiceLocator |
ClassVisitorImpl.locator |
Constructor and Description |
---|
ClassVisitorImpl(ServiceLocator locator,
boolean verbose,
java.util.Set<java.lang.String> excludes)
Creates this with the config to add to if this is a service
|