|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use ComponentException | |
|---|---|
| com.sun.hk2.component | Dependency injection implementation for HK2. |
| org.jvnet.hk2.component | Primary API surface of HK2. Start with Habitat. |
| org.jvnet.hk2.junit | |
| Uses of ComponentException in com.sun.hk2.component |
|---|
| Methods in com.sun.hk2.component that throw ComponentException | ||
|---|---|---|
T |
ConstructorCreator.create(Inhabitant onBehalfOf)
|
|
T |
FactoryCreator.create(Inhabitant onBehalfOf)
|
|
T |
AbstractCreatorImpl.get(Inhabitant onBehalfOf)
|
|
T |
ExistingSingletonInhabitant.get(Inhabitant onBehalfOf)
|
|
protected
|
InjectInjectionResolver.getComponentInjectValue(Habitat habitat,
java.lang.Object component,
Inhabitant<?> onBehalfOf,
java.lang.reflect.AnnotatedElement target,
java.lang.reflect.Type genericType,
java.lang.Class<V> type,
Inject inject)
|
|
protected
|
InjectInjectionResolver.getHolderInjectValue(Habitat habitat,
java.lang.Object component,
Inhabitant<?> onBehalfOf,
java.lang.reflect.AnnotatedElement target,
java.lang.reflect.Type genericType,
java.lang.Class<V> type,
Inject inject)
|
|
protected
|
InjectInjectionResolver.getServiceInjectValue(Habitat habitat,
java.lang.Object component,
Inhabitant<?> onBehalfOf,
java.lang.reflect.AnnotatedElement target,
java.lang.reflect.Type genericType,
java.lang.Class<V> type,
Inject inject)
|
|
abstract
|
InjectionResolver.getValue(java.lang.Object component,
Inhabitant<?> onBehalfOf,
java.lang.reflect.AnnotatedElement annotated,
java.lang.reflect.Type genericType,
java.lang.Class<V> type)
Returns the value to inject in the field or method of component annotated with the annotated annotation. |
|
|
LeadInjectionResolver.getValue(java.lang.Object component,
Inhabitant<?> onBehalfOf,
java.lang.reflect.AnnotatedElement target,
java.lang.reflect.Type genericType,
java.lang.Class<V> type)
Deprecated. |
|
|
InjectInjectionResolver.getValue(java.lang.Object component,
Inhabitant<?> onBehalfOf,
java.lang.reflect.AnnotatedElement target,
java.lang.reflect.Type genericType,
java.lang.Class<V> type)
Obtains the value to inject, based on the type and Inject annotation. |
|
void |
ConstructorCreator.initialize(T t,
Inhabitant onBehalfOf)
|
|
void |
AbstractCreatorImpl.initialize(T t,
Inhabitant onBehalfOf)
|
|
protected void |
RunLevelInhabitant.verifyState()
Verifies that the state of the RunLevelService is appropriate for this instance activation. |
|
| Uses of ComponentException in org.jvnet.hk2.component |
|---|
| Subclasses of ComponentException in org.jvnet.hk2.component | |
|---|---|
class |
UnsatisfiedDependencyException
Exception thrown by the injection manager when a dependency is not satisfied when performing injection. |
| Methods in org.jvnet.hk2.component that throw ComponentException | ||
|---|---|---|
|
Habitat.addComponent(java.lang.String name,
T component)
Add an already instantiated component to this manager. |
|
T |
Creator.create(Inhabitant onBehalfOf)
Creates a new instance. |
|
T |
Creator.get()
Short cut for |
|
|
Habitat.getComponent(java.lang.Class<T> clazz)
Obtains a reference to the component inside the manager. |
|
|
Habitat.getComponent(java.lang.Class<T> contract,
java.lang.String name)
Loads a component that implements the given contract and has the given name. |
|
|
InhabitantTracker.getInhabitant()
Returns a single inhabitant. |
|
|
Habitat.getInhabitant(java.lang.Class<T> contract,
java.lang.String name)
Gets a lazy reference to the component. |
|
Inhabitant<?> |
Habitat.getInhabitantByAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> contract,
java.lang.String name)
Gets the inhabitant that has the given contract annotation and the given name. |
|
java.util.Collection<Inhabitant<?>> |
InhabitantTracker.getInhabitants()
Returns the set of inhabitants qualifying. |
|
|
Habitat.getInhabitants(java.lang.Class<T> contract)
Gets all the inhabitants that has the given contract. |
|
|
Habitat.getInhabitants(java.lang.Class<T> contract,
java.lang.String name)
Gets all the inhabitants that has the given contract and the given name |
|
java.lang.Iterable<Inhabitant<?>> |
Habitat.getInhabitantsByAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> contract,
java.lang.String name)
Gets all the inhabitants that has the given contract annotation and the given name. |
|
|
Habitat.getInhabitantsByType(java.lang.Class<T> implType)
Gets all the inhabitants that has the given implementation type. |
|
java.lang.Object |
Factory.getObject()
The system calls this method to obtain a reference to the component. |
|
void |
Creator.initialize(T t,
Inhabitant onBehalfOf)
Performs initialization of object, such as dependency injection. |
|
InhabitantTrackerContextBuilder |
InhabitantTrackerContextBuilder.ldapFilter(java.lang.String ldapExpression)
|
|
Habitat |
HabitatFactory.newHabitat()
|
|
InhabitantTracker |
Habitat.track(InhabitantTrackerContext itc,
InhabitantTracker.Callback callback)
Registers a dependency on the inhabitant with the given tracker context. |
|
java.util.concurrent.Future<InhabitantTracker> |
Habitat.trackFuture(InhabitantTrackerContext itc)
Returns a future that can be checked asynchronously, and multiple times. |
|
| Uses of ComponentException in org.jvnet.hk2.junit |
|---|
| Methods in org.jvnet.hk2.junit that throw ComponentException | |
|---|---|
Habitat |
Hk2TestServices.createHabitat()
|
InhabitantsParser |
Hk2TestServices.createInhabitantsParser(Habitat h)
|
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||