Modifier and Type | Method and Description |
---|---|
MultiException |
ErrorInformation.getAssociatedException()
This will contain the associated exception or exceptions that caused
the failure.
|
Modifier and Type | Method and Description |
---|---|
Object |
ProxyCtl.__make()
This method causes the proxy instance to get created at the current time, without
calling any of the methods on the underlying class itself.
|
<T> ActiveDescriptor<T> |
DynamicConfiguration.addActiveDescriptor(Class<T> rawClass)
This adds an active descriptor to the system based completely on the analysis
of the given class.
|
<T> FactoryDescriptors |
DynamicConfiguration.addActiveFactoryDescriptor(Class<? extends Factory<T>> rawFactoryClass)
This adds two active descriptors to the system based completely on the analysis
of the given
Factory class. |
void |
DynamicConfiguration.commit()
This causes the configuration to get committed.
|
List<ServiceHandle<?>> |
ServiceLocator.getAllServiceHandles(Annotation qualifier,
Annotation... qualifiers)
Gets a list of
ServiceHandle that can be used to get and destroy services
associated with descriptors that match the provided criteria |
<T> List<ServiceHandle<T>> |
ServiceLocator.getAllServiceHandles(Class<T> contractOrImpl,
Annotation... qualifiers)
Gets a list of
ServiceHandle that can be used to get and destroy services
associated with descriptors that match the provided criteria |
List<ServiceHandle<?>> |
ServiceLocator.getAllServiceHandles(Filter searchCriteria)
Gets a list of
ServiceHandle whose ActiveDescriptor s match
the supplied filter. |
List<ServiceHandle<?>> |
ServiceLocator.getAllServiceHandles(Type contractOrImpl,
Annotation... qualifiers)
Gets a list of
ServiceHandle that can be used to get and destroy services
associated with descriptors that match the provided criteria |
<T> List<T> |
ServiceLocator.getAllServices(Annotation qualifier,
Annotation... qualifiers)
Gets all services from this locator that have the provided qualifiers
|
<T> List<T> |
ServiceLocator.getAllServices(Class<T> contractOrImpl,
Annotation... qualifiers)
Gets all services from this locator that implement this contract or have this
implementation and have the provided qualifiers
|
List<?> |
ServiceLocator.getAllServices(Filter searchCriteria)
Gets all services from this locator that match the provided
Filter |
<T> List<T> |
ServiceLocator.getAllServices(Type contractOrImpl,
Annotation... qualifiers)
Gets all services from this locator that implement this contract or have this
implementation and have the provided qualifiers
|
<T> Constructor<T> |
ClassAnalyzer.getConstructor(Class<T> clazz)
Will return the constructor that it to be used when constructing this
service
|
<T> Set<Field> |
ClassAnalyzer.getFields(Class<T> clazz)
Will return the set of initializer fields to be used when initializing
this service
|
<T> Set<Method> |
ClassAnalyzer.getInitializerMethods(Class<T> clazz)
Will return the set of initializer method to be used when initializing
this service
|
ActiveDescriptor<?> |
ServiceLocator.getInjecteeDescriptor(Injectee injectee)
This method will first find a descriptor for this injectee, and then
reify that descriptor.
|
<T> Method |
ClassAnalyzer.getPostConstructMethod(Class<T> clazz)
Will return the postConstruct method of the class
|
<T> Method |
ClassAnalyzer.getPreDestroyMethod(Class<T> clazz)
Will return the preDestroy method of the class
|
<T> T |
ServiceLocator.getService(ActiveDescriptor<T> activeDescriptor,
ServiceHandle<?> root)
|
<T> T |
ServiceLocator.getService(ActiveDescriptor<T> activeDescriptor,
ServiceHandle<?> root,
Injectee injectee)
This method should be called by code resolving injectee's on behalf of some
root service, usually by an implementation of
InjectionResolver.resolve(Injectee, ServiceHandle) . |
<T> T |
ServiceLocator.getService(Class<T> contractOrImpl,
Annotation... qualifiers)
Gets the best service from this locator that implements
this contract or has this implementation
|
<T> T |
ServiceLocator.getService(Class<T> contractOrImpl,
String name,
Annotation... qualifiers)
Gets the best service from this locator that implements
this contract or has this implementation and has the given
name
|
<T> T |
ServiceLocator.getService(Type contractOrImpl,
Annotation... qualifiers)
Gets the best service from this locator that implements
this contract or has this implementation
|
<T> T |
ServiceLocator.getService(Type contractOrImpl,
String name,
Annotation... qualifiers)
Gets the best service from this locator that implements
this contract or has this implementation and has the given
name
|
<T> ServiceHandle<T> |
ServiceLocator.getServiceHandle(ActiveDescriptor<T> activeDescriptor)
Gets a
ServiceHandle that can be used to get and destroy the service
described by the ActiveDescriptor . |
<T> ServiceHandle<T> |
ServiceLocator.getServiceHandle(ActiveDescriptor<T> activeDescriptor,
Injectee injectee)
Gets a
ServiceHandle that can be used to get and destroy the service
described by the ActiveDescriptor . |
<T> ServiceHandle<T> |
ServiceLocator.getServiceHandle(Class<T> contractOrImpl,
Annotation... qualifiers)
Gets a
ServiceHandle that can be used to get and destroy the
service that best matches the given criteria |
<T> ServiceHandle<T> |
ServiceLocator.getServiceHandle(Class<T> contractOrImpl,
String name,
Annotation... qualifiers)
Gets a
ServiceHandle that can be used to get and destroy the
service that best matches the given criteria |
<T> ServiceHandle<T> |
ServiceLocator.getServiceHandle(Type contractOrImpl,
Annotation... qualifiers)
Gets a
ServiceHandle that can be used to get and destroy the
service that best matches the given criteria |
<T> ServiceHandle<T> |
ServiceLocator.getServiceHandle(Type contractOrImpl,
String name,
Annotation... qualifiers)
Gets a
ServiceHandle that can be used to get and destroy the
service that best matches the given criteria |
Class<?> |
HK2Loader.loadClass(String className)
Loads a class given the class name to instantiate
|
void |
ErrorService.onFailure(ErrorInformation errorInformation)
This method is called when a failure occurs in the system.
|
List<ActiveDescriptor<?>> |
Populator.populate()
This method will populate the service locator using the system classloader to
find the hk2-locator files from the default location of META-INF/hk2-locator/default.
|
List<ActiveDescriptor<?>> |
Populator.populate(DescriptorFileFinder fileFinder,
PopulatorPostProcessor... postProcessors)
This method can be used to populate the service locator with files that
have been written out using the
DescriptorImpl writeObject method. |
void |
TwoPhaseResource.prepareDynamicConfiguration(TwoPhaseTransactionData dynamicConfiguration)
This method is called prior to any changes being made to the
ServiceLocator
but after the IdempotentFilters are called. |
ActiveDescriptor<?> |
ServiceLocator.reifyDescriptor(Descriptor descriptor)
Converts a descriptor to an ActiveDescriptor.
|
ActiveDescriptor<?> |
ServiceLocator.reifyDescriptor(Descriptor descriptor,
Injectee injectee)
Converts a descriptor to an ActiveDescriptor.
|
Modifier and Type | Method and Description |
---|---|
void |
WriteableBeanDatabase.commit()
This method should be called when the writeable database should become
the current database.
|
void |
WriteableBeanDatabase.commit(Object commitMessage)
This method should be called when the writeable database should become
the current database.
|
Modifier and Type | Method and Description |
---|---|
void |
DefaultTopicDistributionErrorService.subscribersFailed(Topic<?> topic,
Object message,
MultiException error)
This method will be called once per
Topic.publish(Object)
call after the message has been distributed to all subscribers. |
Modifier and Type | Method and Description |
---|---|
void |
ImmediateHelper.onFailure(ErrorInformation errorInformation) |
Modifier and Type | Method and Description |
---|---|
static ServiceLocator |
ServiceLocatorUtilities.createAndPopulateServiceLocator(String name)
This method is often the first line of a stand-alone client that wishes to use HK2.
|
static <T> T |
ServiceLocatorUtilities.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.
|
Class<?> |
HK2LoaderImpl.loadClass(String className) |
void |
RethrowErrorService.onFailure(ErrorInformation errorInformation) |
Modifier and Type | Method and Description |
---|---|
<T> ActiveDescriptor<T> |
AbstractBinder.addActiveDescriptor(Class<T> rawClass)
This adds an active descriptor to the system based completely on the analysis
of the given class.
|
<T> FactoryDescriptors |
AbstractBinder.addActiveFactoryDescriptor(Class<? extends Factory<T>> rawFactoryClass)
This adds two active descriptors to the system based completely on the analysis
of the given
Factory class. |
void |
AbstractBinder.commit()
This causes the configuration to get committed.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
GuiceBridge.initializeGuiceBridge(ServiceLocator locator)
This method will initialize the given service locator for use with the Guice/HK2
bridge.
|
Modifier and Type | Method and Description |
---|---|
MultiException |
ErrorInformationImpl.getAssociatedException() |
Modifier and Type | Method and Description |
---|---|
void |
Collector.addMultiException(MultiException me) |
Modifier and Type | Method and Description |
---|---|
<T> FactoryDescriptors |
DynamicConfigurationImpl.addActiveFactoryDescriptor(Class<? extends Factory<T>> rawFactoryClass) |
void |
DynamicConfigurationImpl.commit() |
T |
Creator.create(ServiceHandle<?> root,
SystemDescriptor<?> eventThrower)
Creates an instance of the given type
|
T |
FactoryCreator.create(ServiceHandle<?> root,
SystemDescriptor<?> eventThrower) |
static <T> AutoActiveDescriptor<T> |
Utilities.createAutoDescriptor(Class<T> clazz,
ServiceLocatorImpl locator)
Creates a reified automatically generated descriptor
|
static <T> AutoActiveDescriptor<T> |
Utilities.createAutoFactoryDescriptor(Class<T> parentClazz,
ActiveDescriptor<?> factoryDescriptor,
ServiceLocatorImpl locator)
Creates a reified automatically generated descriptor
|
void |
Creator.dispose(T instance)
Disposes the given instance
|
List<ServiceHandle<?>> |
ServiceLocatorImpl.getAllServiceHandles(Annotation qualifier,
Annotation... qualifiers) |
<T> List<ServiceHandle<T>> |
ServiceLocatorImpl.getAllServiceHandles(Class<T> contractOrImpl,
Annotation... qualifiers) |
List<ServiceHandle<?>> |
ServiceLocatorImpl.getAllServiceHandles(Filter searchCriteria) |
List<ServiceHandle<?>> |
ServiceLocatorImpl.getAllServiceHandles(Type contractOrImpl,
Annotation... qualifiers) |
<T> List<T> |
ServiceLocatorImpl.getAllServices(Annotation qualifier,
Annotation... qualifiers) |
<T> List<T> |
ServiceLocatorImpl.getAllServices(Class<T> contractOrImpl,
Annotation... qualifiers) |
List<?> |
ServiceLocatorImpl.getAllServices(Filter searchCriteria) |
<T> List<T> |
ServiceLocatorImpl.getAllServices(Type contractOrImpl,
Annotation... qualifiers) |
<T> Constructor<T> |
DefaultClassAnalyzer.getConstructor(Class<T> clazz) |
<T> Set<Field> |
DefaultClassAnalyzer.getFields(Class<T> clazz) |
<T> Set<Method> |
DefaultClassAnalyzer.getInitializerMethods(Class<T> clazz) |
ActiveDescriptor<?> |
ServiceLocatorImpl.getInjecteeDescriptor(Injectee injectee) |
<T> Method |
DefaultClassAnalyzer.getPostConstructMethod(Class<T> clazz) |
<T> Method |
DefaultClassAnalyzer.getPreDestroyMethod(Class<T> clazz) |
<T> T |
ServiceLocatorImpl.getService(ActiveDescriptor<T> activeDescriptor,
ServiceHandle<?> root)
Deprecated.
|
<T> T |
ServiceLocatorImpl.getService(ActiveDescriptor<T> activeDescriptor,
ServiceHandle<?> root,
Injectee originalRequest) |
<T> T |
ServiceLocatorImpl.getService(Class<T> contractOrImpl,
Annotation... qualifiers) |
<T> T |
ServiceLocatorImpl.getService(Class<T> contractOrImpl,
String name,
Annotation... qualifiers) |
<T> T |
ServiceLocatorImpl.getService(Type contractOrImpl,
Annotation... qualifiers) |
<T> T |
ServiceLocatorImpl.getService(Type contractOrImpl,
String name,
Annotation... qualifiers) |
<T> ServiceHandle<T> |
ServiceLocatorImpl.getServiceHandle(ActiveDescriptor<T> activeDescriptor) |
<T> ServiceHandle<T> |
ServiceLocatorImpl.getServiceHandle(ActiveDescriptor<T> activeDescriptor,
Injectee injectee) |
<T> ServiceHandle<T> |
ServiceLocatorImpl.getServiceHandle(Class<T> contractOrImpl,
Annotation... qualifiers) |
<T> ServiceHandle<T> |
ServiceLocatorImpl.getServiceHandle(Class<T> contractOrImpl,
String name,
Annotation... qualifiers) |
<T> ServiceHandle<T> |
ServiceLocatorImpl.getServiceHandle(Type contractOrImpl,
Annotation... qualifiers) |
<T> ServiceHandle<T> |
ServiceLocatorImpl.getServiceHandle(Type contractOrImpl,
String name,
Annotation... qualifiers) |
ActiveDescriptor<?> |
ServiceLocatorImpl.reifyDescriptor(Descriptor descriptor) |
ActiveDescriptor<?> |
ServiceLocatorImpl.reifyDescriptor(Descriptor descriptor,
Injectee injectee) |
void |
Collector.throwIfErrors()
This method will throw if the list of throwables associated with this
collector is not empty
|
Modifier and Type | Method and Description |
---|---|
abstract void |
SpringBridge.initializeSpringBridge(ServiceLocator locator)
This method will initialize the given service locator for use with the Spring/HK2
bridge.
|
Modifier and Type | Method and Description |
---|---|
void |
SpringBridgeImpl.initializeSpringBridge(ServiceLocator locator) |
Modifier and Type | Method and Description |
---|---|
void |
ErrorServiceImpl.onFailure(ErrorInformation ei) |
Copyright © 2009-2017, Oracle and/or its affiliates. All Rights Reserved.