|
||||||||||
| 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. |
| Uses of ComponentException in com.sun.hk2.component |
|---|
| Methods in com.sun.hk2.component that throw ComponentException | |
|---|---|
T |
FactoryWomb.create(Inhabitant onBehalfOf)
|
T |
ConstructorWomb.create(Inhabitant onBehalfOf)
|
void |
ConstructorWomb.extract(java.lang.Object component,
ScopeInstance si)
Extracts resources identified with Extract annotations
into the given scope. |
T |
AbstractWombImpl.get(Inhabitant onBehalfOf)
|
T |
LazyInhabitant.get(Inhabitant onBehalfOf)
|
T |
ExistingSingletonInhabitant.get(Inhabitant onBehalfOf)
|
abstract java.lang.Object |
InjectionResolver.getValue(java.lang.Object component,
java.lang.reflect.AnnotatedElement annotated,
java.lang.Class type)
Returns the value to inject in the field or method of component annotated with the annotated annotation. |
void |
AbstractWombImpl.initialize(T t,
Inhabitant onBehalfOf)
|
void |
ConstructorWomb.initialize(T t,
Inhabitant onBehalfOf)
|
| Uses of ComponentException in org.jvnet.hk2.component |
|---|
| Subclasses of ComponentException in org.jvnet.hk2.component | |
|---|---|
class |
UnsatisfiedDepedencyException
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 |
Womb.create(Inhabitant onBehalfOf)
Creates a new instance. |
|
T |
Womb.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. |
|
|
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. |
|
|
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 |
Womb.initialize(T t,
Inhabitant onBehalfOf)
Performs initialization of object, such as dependency injection. |
|
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||