|
||||||||||
| 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.component.concurrent | |
| org.jvnet.hk2.junit | |
| Uses of ComponentException in com.sun.hk2.component |
|---|
| Methods in com.sun.hk2.component that throw ComponentException | ||
|---|---|---|
T |
FactoryCreator.create(Inhabitant onBehalfOf)
|
|
T |
ConstructorCreator.create(Inhabitant onBehalfOf)
|
|
T |
InjectableParametizedConstructorCreator.create(Inhabitant onBehalfOf)
|
|
T |
ExistingSingletonInhabitant.get(Inhabitant onBehalfOf)
|
|
T |
AbstractCreatorImpl.get(Inhabitant onBehalfOf)
|
|
protected
|
InjectInjectionResolver.getHolderInjectValue(Habitat habitat,
Object component,
Inhabitant<?> onBehalfOf,
AnnotatedElement target,
Type genericType,
Class<V> type,
Inject inject)
|
|
protected
|
InjectInjectionResolver.getProviderByContract(Habitat habitat,
Inhabitant<?> onBehalfOf,
AnnotatedElement target,
Type genericType,
Inject inject)
|
|
|
InjectionResolverQuery.getValue(Object component,
Inhabitant<?> onBehalfOf,
AnnotatedElement annotated,
Type genericType,
Class<V> type)
Returns the value to inject in the field or method of component annotated with the annotated annotation. |
|
|
InjectInjectionResolver.getValue(Object component,
Inhabitant<?> onBehalfOf,
AnnotatedElement target,
Type genericType,
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 |
RunLevelException
Exception related to the operations of the RunLevelService. |
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(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(Class<T> clazz)
Obtains a reference to the component inside the manager. |
|
|
SimpleServiceLocator.getComponent(Class<T> contract,
String name)
Loads a component that implements the given contract and has the given name. |
|
|
Habitat.getComponent(Class<T> contract,
String name)
|
|
|
InhabitantTracker.getInhabitant()
Returns a single inhabitant. |
|
|
Habitat.getInhabitant(Class<T> contract,
String name)
Gets a lazy reference to the component. |
|
Inhabitant<?> |
Habitat.getInhabitantByAnnotation(Class<? extends Annotation> contract,
String name)
Gets the inhabitant that has the given contract annotation and the given name. |
|
Collection<Inhabitant<?>> |
InhabitantTracker.getInhabitants()
Returns the set of inhabitants qualifying. |
|
|
Habitat.getInhabitants(Class<T> contract,
String name)
Gets all the inhabitants that has the given contract and the given name This method defers the actual instantiation of the component until Inhabitant.get() is invoked. |
|
Iterable<Inhabitant<?>> |
Habitat.getInhabitantsByAnnotation(Class<? extends Annotation> contract,
String name)
Gets all the inhabitants that has the given contract annotation and the given name. |
|
|
SimpleServiceLocator.getInhabitantsByContract(String contractName)
|
|
|
SimpleServiceLocator.getInhabitantsByContract(Type contract)
Gets all the inhabitants that has the given contract. |
|
|
Habitat.getInhabitantsByContract(Type contract)
Gets all the inhabitants that has the given contract. |
|
|
SimpleServiceLocator.getInhabitantsByType(Class<T> type)
Gets all the inhabitants that has the given type. |
|
|
Habitat.getInhabitantsByType(Class<T> implType)
Gets all the inhabitants that has the given implementation type. |
|
|
SimpleServiceLocator.getInhabitantsByType(String typeName)
|
|
T |
ContextualFactory.getObject(InjectionPoint injectionPoint,
AccessControlContext acc)
The system calls this method to obtain a reference to the component when injection point context information is available. |
|
void |
Creator.initialize(T t,
Inhabitant onBehalfOf)
Performs initialization of object, such as dependency injection. |
|
InhabitantTrackerContextBuilder |
InhabitantTrackerContextBuilder.ldapFilter(String ldapExpression)
|
|
Habitat |
HabitatFactory.newHabitat()
Create a new Habitat without a parent or name. |
|
Habitat |
HabitatFactory.newHabitat(Services parent,
String name)
Create a new Habitat optionally providing a parent Services as well as a name. |
|
InhabitantTracker |
Habitat.track(InhabitantTrackerContext itc,
InhabitantTracker.Callback callback)
Registers a dependency on the inhabitant with the given tracker context. |
|
Future<InhabitantTracker> |
Habitat.trackFuture(InhabitantTrackerContext itc)
Returns a future that can be checked asynchronously, and multiple times. |
|
| Uses of ComponentException in org.jvnet.hk2.component.concurrent |
|---|
| Subclasses of ComponentException in org.jvnet.hk2.component.concurrent | |
|---|---|
static class |
WorkManager.ExecutionException
|
| 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)
|
Habitat |
Hk2TestServices.createPopulatedHabitat()
|
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||