|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use Inhabitant | |
|---|---|
| com.sun.hk2.component | Dependency injection implementation for HK2. |
| org.jvnet.hk2.component | Primary API surface of HK2. Start with Habitat. |
| Uses of Inhabitant in com.sun.hk2.component |
|---|
| Classes in com.sun.hk2.component that implement Inhabitant | |
|---|---|
class |
AbstractInhabitantImpl<T>
Partial implementation of Inhabitant that defines methods whose
semantics is fixed by Habitat. |
class |
AbstractWombImpl<T>
|
class |
ConstructorWomb<T>
Creates an object from its constructor. |
class |
ExistingSingletonInhabitant<T>
Inhabitant built around an object that already exists. |
class |
FactoryWomb<T>
Creates an object from Factory. |
class |
LazyInhabitant<T>
|
class |
ScopedInhabitant<T>
|
class |
SingletonInhabitant<T>
Specialized implementation of ScopedInhabitant for Singleton. |
| Methods in com.sun.hk2.component that return Inhabitant | |
|---|---|
Inhabitant |
AbstractInhabitantImpl.lead()
|
| Methods in com.sun.hk2.component that return types with arguments of type Inhabitant | |
|---|---|
java.util.Collection<Inhabitant> |
AbstractInhabitantImpl.companions()
|
| Methods in com.sun.hk2.component with parameters of type Inhabitant | ||
|---|---|---|
protected void |
InhabitantsParser.add(Inhabitant i,
KeyValuePairParser kvpp)
Adds the given inhabitant to the habitat, with all its indices. |
|
T |
FactoryWomb.create(Inhabitant onBehalfOf)
|
|
T |
ConstructorWomb.create(Inhabitant onBehalfOf)
|
|
static LazyInhabitant |
CompanionSeed.Registerer.createCompanion(Habitat habitat,
Inhabitant<?> lead,
Inhabitant<?> seed)
Creates a companion inhabitant from the inhabitant of a CompanionSeed,
to be associated with a lead component. |
|
static LazyInhabitant |
CompanionSeed.Registerer.createCompanion(Habitat habitat,
Inhabitant<?> lead,
Inhabitant<?> seed)
Creates a companion inhabitant from the inhabitant of a CompanionSeed,
to be associated with a lead component. |
|
T |
ScopedInhabitant.get(Inhabitant onBehalfOf)
|
|
T |
AbstractWombImpl.get(Inhabitant onBehalfOf)
|
|
T |
SingletonInhabitant.get(Inhabitant onBehalfOf)
|
|
T |
LazyInhabitant.get(Inhabitant onBehalfOf)
|
|
T |
ExistingSingletonInhabitant.get(Inhabitant onBehalfOf)
|
|
|
ScopeInstance.get(Inhabitant<T> inhabitant)
|
|
void |
AbstractWombImpl.initialize(T t,
Inhabitant onBehalfOf)
|
|
void |
ConstructorWomb.initialize(T t,
Inhabitant onBehalfOf)
|
|
protected void |
AbstractWombImpl.inject(Habitat habitat,
T t,
Inhabitant onBehalfOf)
Performs resource injection on the given instance from the given habitat. |
|
void |
CompanionSeed.Registerer.onEntered(Inhabitant<?> i)
|
|
|
ScopeInstance.put(Inhabitant<T> inhabitant,
T value)
|
|
| Method parameters in com.sun.hk2.component with type arguments of type Inhabitant | |
|---|---|
void |
AbstractInhabitantImpl.setCompanions(java.util.Collection<Inhabitant> companions)
|
| Constructors in com.sun.hk2.component with parameters of type Inhabitant | |
|---|---|
FactoryWomb(java.lang.Class<T> type,
Inhabitant<? extends Factory> factory,
Habitat habitat,
MultiMap<java.lang.String,java.lang.String> metadata)
|
|
| Uses of Inhabitant in org.jvnet.hk2.component |
|---|
| Subinterfaces of Inhabitant in org.jvnet.hk2.component | |
|---|---|
interface |
Womb<T>
Encapsulates how to create an object. |
| Methods in org.jvnet.hk2.component that return Inhabitant | ||
|---|---|---|
static
|
Inhabitants.create(java.lang.Class<T> c,
Habitat habitat,
MultiMap<java.lang.String,java.lang.String> metadata)
Creates a Inhabitant by looking at annotations of the given type. |
|
static
|
Inhabitants.create(T instance)
Creates a singleton wrapper around existing object. |
|
|
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. |
|
Inhabitant |
Habitat.getInhabitantByContract(java.lang.String fullyQualifiedName,
java.lang.String name)
|
|
|
Habitat.getInhabitantByType(java.lang.Class<T> implType)
Gets a lazy reference to the component. |
|
Inhabitant<?> |
Habitat.getInhabitantByType(java.lang.String fullyQualifiedClassName)
|
|
Inhabitant |
Inhabitant.lead()
If this inhabitant is a companion to another inhabitant (called "lead"), This method returns that inhabitant. |
|
static
|
Inhabitants.wrapByScope(java.lang.Class<T> c,
Womb<T> womb,
Habitat habitat)
Creates a Inhabitant by wrapping Womb to handle scoping right. |
|
| Methods in org.jvnet.hk2.component that return types with arguments of type Inhabitant | ||
|---|---|---|
java.util.Collection<Inhabitant> |
Inhabitant.companions()
Returns the companion inhabitants associated with this inhabitant. |
|
|
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. |
|
java.util.Collection<Inhabitant<?>> |
Habitat.getInhabitantsByContract(java.lang.String fullyQualifiedClassName)
|
|
|
Habitat.getInhabitantsByType(java.lang.Class<T> implType)
Gets all the inhabitants that has the given implementation type. |
|
java.util.Collection<Inhabitant<?>> |
Habitat.getInhabitantsByType(java.lang.String fullyQualifiedClassName)
Gets all the inhabitants that has the given implementation type name. |
|
| Methods in org.jvnet.hk2.component with parameters of type Inhabitant | |
|---|---|
void |
Habitat.add(Inhabitant<?> i)
Adds a new inhabitant. |
void |
Habitat.addIndex(Inhabitant<?> i,
java.lang.String index,
java.lang.String name)
Adds a new index to look up the given inhabitant. |
T |
Womb.create(Inhabitant onBehalfOf)
Creates a new instance. |
T |
Inhabitant.get(Inhabitant onBehalfOf)
Returns the instance of this inhabitant. |
void |
Womb.initialize(T t,
Inhabitant onBehalfOf)
Performs initialization of object, such as dependency injection. |
void |
CageBuilder.onEntered(Inhabitant<?> i)
Called when an Inhabitant is entered into habitat. |
void |
CageBuilder.Registerer.onEntered(Inhabitant<?> i)
|
boolean |
Habitat.remove(Inhabitant<?> inhabitant)
Removes a inhabitant |
void |
InhabitantRequested.setInhabitant(Inhabitant inhabitant)
Sets the inhabitant instance wrapping this instance. |
| Method parameters in org.jvnet.hk2.component with type arguments of type Inhabitant | |
|---|---|
void |
Inhabitant.setCompanions(java.util.Collection<Inhabitant> companions)
This method is only meant to be invoked by Habitat. |
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||