Uses of Interface
org.jvnet.hk2.component.Inhabitant

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 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
<T> Inhabitant<T>
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
<T> Inhabitant<T>
Inhabitants.create(T instance)
          Creates a singleton wrapper around existing object.
static Inhabitant<?> 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 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)
           
 Inhabitant<?> LazyInhabitant.lead()
           
 Inhabitant AbstractInhabitantImpl.lead()
           
static
<T> Inhabitant<T>
Inhabitants.wrapByScope(java.lang.Class<T> c, Creator<T> creator, Habitat habitat)
          Creates a Inhabitant by wrapping Creator to handle scoping right.
static
<T> Inhabitant<T>
Inhabitants.wrapByScope(Creator<T> creator, Habitat habitat, java.lang.Class<? extends 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
protected  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.
protected  void InhabitantsParser.addIndex(Inhabitant<?> i, java.lang.String typeName, java.lang.String name)
          Adds the given inhabitant index to the habitat
 T ConstructorCreator.create(Inhabitant onBehalfOf)
           
 T FactoryCreator.create(Inhabitant onBehalfOf)
           
static Inhabitant<?> 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 Inhabitant<?> 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 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)
           
 T RunLevelInhabitant.get(Inhabitant onBehalfOf)
           
 T SingletonInhabitant.get(Inhabitant onBehalfOf)
           
 T ScopedInhabitant.get(Inhabitant onBehalfOf)
           
 T EventPublishingInhabitant.get(Inhabitant onBehalfOf)
           
 T AbstractCreatorImpl.get(Inhabitant onBehalfOf)
           
 T ExistingSingletonInhabitant.get(Inhabitant onBehalfOf)
           
<T> T
ScopeInstance.get(Inhabitant<T> inhabitant)
           
protected
<V> V
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
<V> V
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
<V> V
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)
           
static
<T> java.util.Collection<java.lang.String>
Inhabitants.getNamesFor(Inhabitant<T> i, java.lang.String indexName)
          Returns the list of names the service implementation in known.
protected
<V> V
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
<V> V
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.
<V> V
LeadInjectionResolver.getValue(java.lang.Object component, Inhabitant<?> onBehalfOf, java.lang.reflect.AnnotatedElement target, java.lang.reflect.Type genericType, java.lang.Class<V> type)
          Deprecated.  
<V> V
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 AbstractCreatorImpl.inject(Habitat habitat, T t, Inhabitant<?> onBehalfOf)
          Performs resource injection on the given instance from the given habitat.
 void CompanionSeed.Registerer.onEntered(Inhabitant<T> i)
           
<T> T
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
FactoryCreator(java.lang.Class<T> type, Inhabitant<? extends 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.
 

Methods in org.jvnet.hk2.component that return Inhabitant
static
<T> Inhabitant<T>
Inhabitants.create(java.lang.Class<T> c, Habitat habitat, MultiMap<java.lang.String,java.lang.String> metadata)
          Deprecated. Use Inhabitants instead.
static
<T> Inhabitant<T>
Inhabitants.create(T instance)
          Deprecated. Use Inhabitants instead.
 Inhabitant<?> ServiceContext.getInhabitant()
          The inhabitant associated with this service context (may be null).
<T> Inhabitant<T>
InhabitantTracker.getInhabitant()
          Returns a single inhabitant.
<T> Inhabitant<T>
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 typeName)
          Get the first inhabitant by contract
 Inhabitant Habitat.getInhabitantByContract(java.lang.String fullyQualifiedName, java.lang.String name)
           
<T> Inhabitant<T>
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.
 

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)
           
 java.util.Collection<Inhabitant<?>> InhabitantTracker.getInhabitants()
          Returns the set of inhabitants qualifying.
<T> java.util.Collection<Inhabitant<? extends T>>
Habitat.getInhabitants(java.lang.Class<T> contract)
          Gets all the inhabitants that has the given contract.
<T> java.lang.Iterable<Inhabitant<? extends T>>
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)
           
<T> java.util.Collection<Inhabitant<T>>
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 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 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
<T> java.util.Collection<java.lang.String>
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.lang.Class type, 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.
 void CageBuilder.onEntered(Inhabitant<T> i)
          Deprecated. Called when an Inhabitant is entered into habitat.
 void CageBuilder.Registerer.onEntered(Inhabitant<T> i)
           
 boolean Habitat.remove(Inhabitant<?> inhabitant)
          Removes an 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.
 java.util.List<Inhabitant<?>> InhabitantSorter.sort(java.util.List<Inhabitant<?>> inhabitants)
          Sorts inhabitants based on an implementation specific sorting scheme.
 

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
protected  boolean DefaultRunLevelService.accept(Inhabitant<?> i, RunLevel rl, int activeRunLevel)
          Returns true if the RunLevel for the given inhabitant in question should be processed by this RunLevelService instance.
 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)
           
 



Copyright © 2011 Oracle Corporation. All Rights Reserved.