|
||||||||||
| 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. |
| org.jvnet.hk2.component.internal.runlevel | |
| org.jvnet.hk2.tracing | |
| Uses of Inhabitant in com.sun.hk2.component |
|---|
| Classes in com.sun.hk2.component that implement Inhabitant | |
|---|---|
class |
AbstractCreatorImpl<T>
|
class |
AbstractInhabitantImpl<T>
Partial implementation of Inhabitant that defines methods whose
semantics is fixed by Habitat. |
class |
ConstructorCreator<T>
Creates an object from its constructor. |
class |
ConstructorWomb<T>
Deprecated. Use ConstructorCreator instead |
class |
EventPublishingInhabitant<T>
An inhabitant that implements InhabitantEventPublisher, and maintains a list of listeners to notify for interesting changes of the underlying delegate. |
class |
ExistingSingletonInhabitant<T>
Inhabitant built around an object that already exists. |
class |
FactoryCreator<T>
Creates an object from Factory. |
class |
InjectableParametizedConstructorCreator<T>
Component for which constructors takes @Inject annotated parameters |
class |
LazyInhabitant<T>
|
class |
RunLevelInhabitant<T,V>
An inhabitant that prevents activation unless the sufficient RunLevelState has been scheduled. |
class |
ScopedInhabitant<T>
|
class |
SingletonInhabitant<T>
Specialized implementation of ScopedInhabitant for Singleton. |
| Fields in com.sun.hk2.component declared as Inhabitant | |
|---|---|
protected Inhabitant<T> |
EventPublishingInhabitant.real
Real Inhabitant object. |
| Methods in com.sun.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. |
|
static Inhabitant<?> |
Inhabitants.createInhabitant(Habitat habitat,
Holder<java.lang.ClassLoader> classLoader,
java.lang.String typeName,
MultiMap<java.lang.String,java.lang.String> metadata,
Inhabitant<?> lead,
java.util.Set<java.lang.String> indicies)
Deprecated. |
|
static Inhabitant<?> |
Inhabitants.createInhabitant(Habitat habitat,
java.util.Iterator<InhabitantProviderInterceptor> interceptors,
Holder<java.lang.ClassLoader> classLoader,
java.lang.String typeName,
MultiMap<java.lang.String,java.lang.String> metadata,
Inhabitant<?> lead,
InhabitantStore store,
java.util.Set<java.lang.String> indicies)
|
|
protected Inhabitant<?> |
InjectInjectionResolver.getInhabitantByType(Inhabitant<?> onBehalfOf,
Habitat habitat,
java.lang.Class<?> finalType)
|
|
Inhabitant |
AbstractInhabitantImpl.lead()
|
|
Inhabitant<?> |
LazyInhabitant.lead()
|
|
protected Inhabitant<?> |
InjectInjectionResolver.manage(Inhabitant<?> onBehalfOf,
Inhabitant<?> inhabitant)
|
|
static
|
Inhabitants.wrapByScope(java.lang.Class<T> c,
Creator<T> creator,
Habitat habitat)
Creates a Inhabitant by wrapping Creator to handle scoping right. |
|
static
|
Inhabitants.wrapByScope(Creator<T> creator,
Habitat habitat,
java.lang.Class<? extends org.glassfish.hk2.Scope> scopeClass)
|
|
| 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 | ||
|---|---|---|
void |
InhabitantStore.add(Inhabitant<?> i)
Adds the given inhabitant to the backing store (usually the habitat) |
|
void |
InhabitantsParser.add(Inhabitant<?> i)
Adds the given inhabitant to the habitat |
|
protected void |
InhabitantsParser.add(Inhabitant<?> i,
InhabitantParser parser)
Adds the given inhabitant to the habitat, with all its indices. |
|
void |
InhabitantStore.addIndex(Inhabitant<?> i,
java.lang.String typeName,
java.lang.String name)
Adds the given inhabitant index to the backing store (usually the habitat) |
|
void |
InhabitantsParser.addIndex(Inhabitant<?> i,
java.lang.String typeName,
java.lang.String name)
Adds the given inhabitant index to the habitat |
|
T |
InjectableParametizedConstructorCreator.create(Inhabitant onBehalfOf)
|
|
T |
FactoryCreator.create(Inhabitant onBehalfOf)
|
|
T |
ConstructorCreator.create(Inhabitant onBehalfOf)
|
|
static Inhabitant<?> |
Inhabitants.createInhabitant(Habitat habitat,
Holder<java.lang.ClassLoader> classLoader,
java.lang.String typeName,
MultiMap<java.lang.String,java.lang.String> metadata,
Inhabitant<?> lead,
java.util.Set<java.lang.String> indicies)
Deprecated. |
|
static Inhabitant<?> |
Inhabitants.createInhabitant(Habitat habitat,
java.util.Iterator<InhabitantProviderInterceptor> interceptors,
Holder<java.lang.ClassLoader> classLoader,
java.lang.String typeName,
MultiMap<java.lang.String,java.lang.String> metadata,
Inhabitant<?> lead,
InhabitantStore store,
java.util.Set<java.lang.String> indicies)
|
|
T |
RunLevelInhabitant.get(Inhabitant onBehalfOf)
|
|
T |
ScopedInhabitant.get(Inhabitant onBehalfOf)
|
|
T |
AbstractCreatorImpl.get(Inhabitant onBehalfOf)
|
|
T |
ExistingSingletonInhabitant.get(Inhabitant onBehalfOf)
|
|
T |
SingletonInhabitant.get(Inhabitant onBehalfOf)
|
|
T |
EventPublishingInhabitant.get(Inhabitant onBehalfOf)
|
|
protected
|
InjectInjectionResolver.getAllByContract(Inhabitant<?> onBehalfOf,
Habitat habitat,
java.lang.Class<V> ct)
|
|
protected
|
InjectInjectionResolver.getAllByType(Inhabitant<?> onBehalfOf,
Habitat habitat,
java.lang.Class<V> ct)
|
|
protected
|
InjectInjectionResolver.getArrayInjectValue(Habitat habitat,
java.lang.Object component,
Inhabitant<?> onBehalfOf,
java.lang.reflect.AnnotatedElement target,
java.lang.reflect.Type genericType,
java.lang.Class<V> type)
|
|
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,
org.jvnet.hk2.annotations.Inject inject)
|
|
protected java.util.concurrent.ExecutorService |
AbstractCreatorImpl.getExecutorService(Habitat h,
Inhabitant<?> onBehalfOf)
|
|
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,
org.jvnet.hk2.annotations.Inject inject)
|
|
protected Inhabitant<?> |
InjectInjectionResolver.getInhabitantByType(Inhabitant<?> onBehalfOf,
Habitat habitat,
java.lang.Class<?> finalType)
|
|
protected
|
InjectInjectionResolver.getInhabitants(Inhabitant<?> onBehalfOf,
Habitat habitat,
java.lang.Class<?> finalType,
java.lang.String name)
|
|
static
|
Inhabitants.getNamesFor(Inhabitant<T> i,
java.lang.String indexName)
Returns the list of names the service implementation in known. |
|
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,
org.jvnet.hk2.annotations.Inject inject)
|
|
|
InjectionResolverQuery.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. |
|
|
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 |
AbstractCreatorImpl.initialize(T t,
Inhabitant onBehalfOf)
|
|
void |
ConstructorCreator.initialize(T t,
Inhabitant onBehalfOf)
|
|
protected void |
AbstractCreatorImpl.inject(Habitat habitat,
T t,
Inhabitant<?> onBehalfOf)
Performs resource injection on the given instance from the given habitat. |
|
protected Inhabitant<?> |
InjectInjectionResolver.manage(Inhabitant<?> onBehalfOf,
Inhabitant<?> inhabitant)
|
|
protected Inhabitant<?> |
InjectInjectionResolver.manage(Inhabitant<?> onBehalfOf,
Inhabitant<?> inhabitant)
|
|
protected
|
InjectInjectionResolver.manage(Inhabitant<?> onBehalfOf,
java.lang.Iterable<?> inhabitants)
|
|
boolean |
InhabitantStore.remove(Inhabitant<?> inhabitant)
Removes an inhabitant |
|
boolean |
InhabitantsParser.remove(Inhabitant<?> i)
|
|
protected
|
InjectInjectionResolver.validate(java.lang.Object component,
Inhabitant<?> onBehalfOf,
V toBeInjected)
Verifies the injection does not violate any integrity rules. |
|
| 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 | |
|---|---|
EventPublishingInhabitant(Inhabitant<?> delegate)
|
|
EventPublishingInhabitant(Inhabitant<?> delegate,
InhabitantListener listener)
|
|
FactoryCreator(java.lang.Class<T> type,
Inhabitant<? extends org.glassfish.hk2.Factory> factory,
Habitat habitat,
MultiMap<java.lang.String,java.lang.String> metadata)
|
|
LazyInhabitant(Habitat habitat,
Holder<java.lang.ClassLoader> cl,
java.lang.String typeName,
MultiMap<java.lang.String,java.lang.String> metadata,
Inhabitant<?> lead)
|
|
| Uses of Inhabitant in org.jvnet.hk2.component |
|---|
| Subinterfaces of Inhabitant in org.jvnet.hk2.component | |
|---|---|
interface |
Creator<T>
Encapsulates how to create an object. |
| Fields in org.jvnet.hk2.component declared as Inhabitant | |
|---|---|
Inhabitant<?> |
InjectionManager.InjectContext.onBehalfOf
|
| 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)
Deprecated. Use Inhabitants instead. |
|
static
|
Inhabitants.create(T instance)
Deprecated. Use Inhabitants instead. |
|
Inhabitant<?> |
InjectionPoint.getInhabitant()
The inhabitant on behalf of the component being injected. |
|
Inhabitant<?> |
ServiceContext.getInhabitant()
The inhabitant associated with this service context (may be null). |
|
|
InhabitantTracker.getInhabitant()
Returns a single inhabitant. |
|
|
Habitat.getInhabitant(java.lang.Class<T> contract,
java.lang.String name)
Gets a lazy reference to the component. |
|
|
Habitat.getInhabitant(java.lang.reflect.Type type,
java.lang.String name)
|
|
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 typeName)
Get the first inhabitant by contract |
|
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)
|
|
|
Habitat.getInhabitantByType(java.lang.reflect.Type implType)
|
|
Inhabitant |
Inhabitant.lead()
If this inhabitant is a companion to another inhabitant (called "lead"), This method returns that inhabitant. |
|
| 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. |
|
java.util.Collection<Inhabitant<?>> |
Habitat.getAllInhabitantsByContract(java.lang.String contractType)
|
|
|
Habitat.getAllInhabitantsByType(java.lang.Class<T> implType)
Gets all matching inhabitants given the type. |
|
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 This method defers the actual instantiation of the component until get() is invoked. |
|
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. |
|
java.util.List<Inhabitant<?>> |
InhabitantSorter.sort(java.util.List<Inhabitant<?>> inhabitants)
Sorts inhabitants based on an implementation specific sorting scheme. |
|
| Methods in org.jvnet.hk2.component with parameters of type Inhabitant | ||
|---|---|---|
void |
MultiThreadedInhabitantActivator.activate(Inhabitant<?> inhabitant)
|
|
void |
InhabitantActivator.activate(Inhabitant<?> inhabitant)
Implementations are generally expected to call get() at
some point. |
|
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. |
|
protected void |
Habitat.addIndex(Inhabitant<?> i,
java.lang.String index,
java.lang.String name,
boolean notify)
|
|
T |
Creator.create(Inhabitant onBehalfOf)
Creates a new instance. |
|
void |
MultiThreadedInhabitantActivator.deactivate(Inhabitant<?> inhabitant)
|
|
void |
InhabitantActivator.deactivate(Inhabitant<?> inhabitant)
Implementations are generally expected to call release() at
some point. |
|
T |
Inhabitant.get(Inhabitant onBehalfOf)
Returns the instance of this inhabitant. |
|
static
|
Inhabitants.getNamesFor(Inhabitant<T> i,
java.lang.String indexName)
Deprecated. Use Inhabitants instead. |
|
protected static java.lang.Long |
Habitat.getServiceRanking(Inhabitant<?> i,
boolean wantNonNull)
|
|
boolean |
HabitatListener.inhabitantChanged(HabitatListener.EventType eventType,
Habitat habitat,
Inhabitant<?> inhabitant)
Called when the habitat has changed. |
|
boolean |
HabitatListenerWeakProxy.inhabitantChanged(HabitatListener.EventType eventType,
Habitat habitat,
Inhabitant<?> inhabitant)
|
|
boolean |
InhabitantListener.inhabitantChanged(InhabitantListener.EventType eventType,
Inhabitant<?> inhabitant)
Called when the inhabitant has changed. |
|
boolean |
HabitatListener.inhabitantIndexChanged(HabitatListener.EventType eventType,
Habitat habitat,
Inhabitant<?> inhabitant,
java.lang.String index,
java.lang.String name,
java.lang.Object service)
Called when the habitat index has changed. |
|
boolean |
HabitatListenerWeakProxy.inhabitantIndexChanged(HabitatListener.EventType eventType,
Habitat habitat,
Inhabitant<?> inhabitant,
java.lang.String index,
java.lang.String name,
java.lang.Object service)
|
|
void |
Creator.initialize(T t,
Inhabitant onBehalfOf)
Performs initialization of object, such as dependency injection. |
|
void |
InjectionManager.inject(java.lang.Object component,
Inhabitant<?> onBehalfOf,
java.util.concurrent.ExecutorService es,
InjectionResolver... targets)
Initializes the component by performing injection. |
|
void |
InjectionManager.inject(java.lang.Object component,
Inhabitant<?> onBehalfOf,
InjectionResolver... targets)
Initializes the component by performing injection. |
|
boolean |
InhabitantFilter.matches(Inhabitant<?> i)
|
|
boolean |
InhabitantTrackerContextBuilder.AlteredLdapMatcherFilter.matches(Inhabitant<?> i)
|
|
protected boolean |
Habitat.matches(Inhabitant<?> inhabitant,
java.lang.Object serviceOrInhabitant)
|
|
protected void |
Habitat.notify(Habitat.NotifyCall innerCall,
Inhabitant<?> inhabitant,
HabitatListener.EventType event,
java.lang.String index,
Inhabitant<HabitatListener> extraListenerToBeNotified)
|
|
protected void |
Habitat.notify(Habitat.NotifyCall innerCall,
Inhabitant<?> inhabitant,
HabitatListener.EventType event,
java.lang.String index,
Inhabitant<HabitatListener> extraListenerToBeNotified)
|
|
protected void |
Habitat.notify(Inhabitant<?> inhabitant,
HabitatListener.EventType event,
java.lang.String index,
Inhabitant<HabitatListener> extraListenerToBeNotified)
|
|
protected void |
Habitat.notify(Inhabitant<?> inhabitant,
HabitatListener.EventType event,
java.lang.String index,
Inhabitant<HabitatListener> extraListenerToBeNotified)
|
|
protected void |
Habitat.notify(Inhabitant<?> inhabitant,
HabitatListener.EventType event,
java.lang.String index,
java.lang.String name,
java.lang.Object service,
Inhabitant<HabitatListener> extraListenerToBeNotified)
|
|
protected void |
Habitat.notify(Inhabitant<?> inhabitant,
HabitatListener.EventType event,
java.lang.String index,
java.lang.String name,
java.lang.Object service,
Inhabitant<HabitatListener> extraListenerToBeNotified)
|
|
void |
Habitat.notifyInhabitantChanged(Inhabitant<?> inhabitant,
java.lang.String... contracts)
Trigger a notification that an inhabitant has changed. |
|
boolean |
Habitat.remove(Inhabitant<?> inhabitant)
Removes an inhabitant |
|
void |
InhabitantRequested.setInhabitant(Inhabitant inhabitant)
Sets the inhabitant instance wrapping this instance. |
|
protected void |
InjectionManager.syncDoInject(java.lang.Object component,
Inhabitant<?> onBehalfOf,
java.lang.Class type,
InjectionResolver... targets)
Initializes the component by performing injection. |
|
| 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. |
java.util.List<Inhabitant<?>> |
InhabitantSorter.sort(java.util.List<Inhabitant<?>> inhabitants)
Sorts inhabitants based on an implementation specific sorting scheme. |
| Constructors in org.jvnet.hk2.component with parameters of type Inhabitant | |
|---|---|
InjectionManager.InjectContext(java.lang.Object component,
Inhabitant<?> onBehalfOf,
java.lang.Class type,
java.util.concurrent.ExecutorService es,
InjectionResolver[] targets)
|
|
| Uses of Inhabitant in org.jvnet.hk2.component.internal.runlevel |
|---|
| Methods in org.jvnet.hk2.component.internal.runlevel that return types with arguments of type Inhabitant | |
|---|---|
java.util.List<Inhabitant<?>> |
DefaultRunLevelService.sort(java.util.List<Inhabitant<?>> inhabitants)
Called when we are responsible for handling the InhabitantSorter work. |
| Methods in org.jvnet.hk2.component.internal.runlevel with parameters of type Inhabitant | |
|---|---|
void |
DefaultRunLevelService.activate(Inhabitant<?> inhabitant)
Called when we are responsible for handling the InhabitantActivator work. |
void |
DefaultRunLevelService.deactivate(Inhabitant<?> inhabitant)
Called when we are responsible for handling the InhabitantActivator work. |
boolean |
DefaultRunLevelService.inhabitantChanged(HabitatListener.EventType eventType,
Habitat habitat,
Inhabitant<?> inhabitant)
Once habitat is initialized we can proceed to boot through to kernel level (-1) |
boolean |
DefaultRunLevelService.inhabitantChanged(InhabitantListener.EventType eventType,
Inhabitant<?> inhabitant)
|
boolean |
DefaultRunLevelService.inhabitantIndexChanged(HabitatListener.EventType eventType,
Habitat habitat,
Inhabitant<?> inhabitant,
java.lang.String index,
java.lang.String name,
java.lang.Object service)
|
protected ServiceContext |
DefaultRunLevelService.serviceContext(java.lang.Exception e,
Inhabitant<?> i)
|
| Method parameters in org.jvnet.hk2.component.internal.runlevel with type arguments of type Inhabitant | |
|---|---|
java.util.List<Inhabitant<?>> |
DefaultRunLevelService.sort(java.util.List<Inhabitant<?>> inhabitants)
Called when we are responsible for handling the InhabitantSorter work. |
| Uses of Inhabitant in org.jvnet.hk2.tracing |
|---|
| Methods in org.jvnet.hk2.tracing that return types with arguments of type Inhabitant | |
|---|---|
java.util.Iterator<Inhabitant> |
InhabitantTracing.inOrder()
|
| Methods in org.jvnet.hk2.tracing with parameters of type Inhabitant | |
|---|---|
void |
InhabitantTracing.push(Inhabitant i)
|
| Constructors in org.jvnet.hk2.tracing with parameters of type Inhabitant | |
|---|---|
TracingUtilities.Node(Inhabitant t)
|
|
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||