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 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
<T> Inhabitant<T>
Inhabitants.create(Class<T> c, Habitat habitat, MultiMap<String,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<?> Inhabitants.createInhabitant(Habitat habitat, Holder<ClassLoader> classLoader, String typeName, MultiMap<String,String> metadata, Inhabitant<?> lead, Set<String> indicies)
          Deprecated.  
static Inhabitant<?> Inhabitants.createInhabitant(Habitat habitat, Iterator<InhabitantProviderInterceptor> interceptors, Holder<ClassLoader> classLoader, String typeName, MultiMap<String,String> metadata, Inhabitant<?> lead, InhabitantStore store, Set<String> indicies)
           
 Inhabitant<?> LazyInhabitant.lead()
           
 Inhabitant AbstractInhabitantImpl.lead()
           
protected  Inhabitant<?> InjectInjectionResolver.manage(Inhabitant<?> onBehalfOf, Inhabitant<?> inhabitant)
           
static
<T> Inhabitant<T>
Inhabitants.wrapByScope(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, Class<? extends Scope> scopeClass)
           
 

Methods in com.sun.hk2.component that return types with arguments of type Inhabitant
 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, String typeName, String name)
          Adds the given inhabitant index to the backing store (usually the habitat)
 void InhabitantsParser.addIndex(Inhabitant<?> i, String typeName, String name)
          Adds the given inhabitant index to the habitat
 T FactoryCreator.create(Inhabitant onBehalfOf)
           
 T ConstructorCreator.create(Inhabitant onBehalfOf)
           
 T InjectableParametizedConstructorCreator.create(Inhabitant onBehalfOf)
           
static Inhabitant<?> Inhabitants.createInhabitant(Habitat habitat, Holder<ClassLoader> classLoader, String typeName, MultiMap<String,String> metadata, Inhabitant<?> lead, Set<String> indicies)
          Deprecated.  
static Inhabitant<?> Inhabitants.createInhabitant(Habitat habitat, Iterator<InhabitantProviderInterceptor> interceptors, Holder<ClassLoader> classLoader, String typeName, MultiMap<String,String> metadata, Inhabitant<?> lead, InhabitantStore store, Set<String> indicies)
           
 T ExistingSingletonInhabitant.get(Inhabitant onBehalfOf)
           
 T SingletonInhabitant.get(Inhabitant onBehalfOf)
           
 T RunLevelInhabitant.get(Inhabitant onBehalfOf)
           
 T EventPublishingInhabitant.get(Inhabitant onBehalfOf)
           
 T ScopedInhabitant.get(Inhabitant onBehalfOf)
           
 T AbstractCreatorImpl.get(Inhabitant onBehalfOf)
           
protected
<V> Collection<V>
InjectInjectionResolver.getAllByContract(Inhabitant<?> onBehalfOf, Habitat habitat, Class<V> ct)
           
protected
<V> Collection<V>
InjectInjectionResolver.getAllByType(Inhabitant<?> onBehalfOf, Habitat habitat, Class<V> ct)
           
protected
<V> V
InjectInjectionResolver.getArrayInjectValue(Habitat habitat, Object component, Inhabitant<?> onBehalfOf, AnnotatedElement target, Type genericType, Class<V> type)
           
protected static Descriptor AbstractInhabitantImpl.getDescriptorFor(Inhabitant<?> i)
           
protected  ExecutorService AbstractCreatorImpl.getExecutorService(Habitat h, Inhabitant<?> onBehalfOf)
           
protected
<V> V
InjectInjectionResolver.getHolderInjectValue(Habitat habitat, Object component, Inhabitant<?> onBehalfOf, AnnotatedElement target, Type genericType, Class<V> type, Inject inject)
           
static
<T> Collection<String>
Inhabitants.getNamesFor(Inhabitant<T> i, String indexName)
          Returns the list of names the service implementation in known.
protected
<V> Provider<V>
InjectInjectionResolver.getProviderByContract(Habitat habitat, Inhabitant<?> onBehalfOf, AnnotatedElement target, Type genericType, Inject inject)
           
<V> V
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.
<V> V
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 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
<V> Collection<V>
InjectInjectionResolver.manage(Inhabitant<?> onBehalfOf, Iterable<?> inhabitants)
           
 boolean InhabitantStore.remove(Inhabitant<?> inhabitant)
          Removes an inhabitant
 boolean InhabitantsParser.remove(Inhabitant<?> i)
           
protected
<V> V
InjectInjectionResolver.validate(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(Collection<Inhabitant> companions)
           
 

Constructors in com.sun.hk2.component with parameters of type Inhabitant
EventPublishingInhabitant(Inhabitant<?> delegate)
           
EventPublishingInhabitant(Inhabitant<?> delegate, InhabitantListener listener)
           
FactoryCreator(Class<T> type, Inhabitant<? extends Factory> factory, Habitat habitat, MultiMap<String,String> metadata)
           
LazyInhabitant(Habitat habitat, Holder<ClassLoader> cl, String typeName, MultiMap<String,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
<T> Inhabitant<T>
Inhabitants.create(Class<T> c, Habitat habitat, MultiMap<String,String> metadata)
          Deprecated. Use Inhabitants instead.
static
<T> Inhabitant<T>
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).
<T> Inhabitant<T>
InhabitantTracker.getInhabitant()
          Returns a single inhabitant.
<T> Inhabitant<T>
Habitat.getInhabitant(Class<T> contract, String name)
          Gets a lazy reference to the component.
<T> Inhabitant<T>
Habitat.getInhabitant(Type type, String name)
           
 Inhabitant<?> Habitat.getInhabitantByAnnotation(Class<? extends Annotation> contract, String name)
          Gets the inhabitant that has the given contract annotation and the given name.
 Inhabitant<?> Habitat.getInhabitantByContract(String typeName)
          Get the first inhabitant by contract
 Inhabitant Habitat.getInhabitantByContract(String fullyQualifiedName, String name)
           
<T> Inhabitant<T>
Habitat.getInhabitantByType(Class<T> implType)
          Gets a lazy reference to the component.
 Inhabitant<?> Habitat.getInhabitantByType(String fullyQualifiedClassName)
           
<T> Inhabitant<T>
Habitat.getInhabitantByType(Type implType)
           
 Inhabitant<?> AsyncWaiter.getLastInhabitantWorkingOn()
          Returns the last Inhabitant that was working on, provided that we are not in a "done" state.
<T> Inhabitant<T>
SimpleServiceLocator.getProvider(String fqcn, String name)
           
<T> Inhabitant<T>
Habitat.getProvider(String fullQualifiedName, String name)
           
<T> Inhabitant<T>
SimpleServiceLocator.getProvider(Type type, String name)
          Gets an inhabitant from its type and optionally name
<T> Inhabitant<T>
Habitat.getProvider(Type type, String name)
           
 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
 Collection<Inhabitant> Inhabitant.companions()
          Returns the companion inhabitants associated with this inhabitant.
static List<Inhabitant<? extends InjectionResolver>> Creators.getAllInjectionResolvers(Habitat habitat)
          Returns all currently available injection annotations
 Collection<Inhabitant<?>> InhabitantTracker.getInhabitants()
          Returns the set of inhabitants qualifying.
<T> Collection<Inhabitant<? extends T>>
Habitat.getInhabitants(Class<T> type)
          Gets all the inhabitants for a spcial contract.
<T> Iterable<Inhabitant<? extends T>>
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 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.
 Collection<Inhabitant<?>> Habitat.getInhabitantsByContract(String fullyQualifiedClassName)
           
<T> Collection<Inhabitant<T>>
SimpleServiceLocator.getInhabitantsByContract(String contractName)
           
<T> Collection<Inhabitant<T>>
SimpleServiceLocator.getInhabitantsByContract(Type contract)
          Gets all the inhabitants that has the given contract.
<T> Collection<Inhabitant<T>>
Habitat.getInhabitantsByContract(Type contract)
          Gets all the inhabitants that has the given contract.
<T> Collection<Inhabitant<T>>
SimpleServiceLocator.getInhabitantsByType(Class<T> type)
          Gets all the inhabitants that has the given type.
<T> Collection<Inhabitant<T>>
Habitat.getInhabitantsByType(Class<T> implType)
          Gets all the inhabitants that has the given implementation type.
 Collection<Inhabitant<?>> Habitat.getInhabitantsByType(String fullyQualifiedClassName)
          Gets all the inhabitants that has the given implementation type name.
<T> Collection<Inhabitant<T>>
SimpleServiceLocator.getInhabitantsByType(String typeName)
           
 List<Inhabitant<?>> InhabitantSorter.sort(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 MultiThreadedInhabitantActivator.activate(Inhabitant<?> inhabitant)
           
 void Habitat.add(Inhabitant<?> i)
          Adds a new inhabitant.
 void Habitat.addIndex(Inhabitant<?> i, String index, String name)
          Adds a new index to look up the given inhabitant.
protected  void Habitat.addIndex(Inhabitant<?> i, String index, 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.
 void MultiThreadedInhabitantActivator.deactivate(Inhabitant<?> inhabitant)
           
 T Inhabitant.get(Inhabitant onBehalfOf)
          Returns the instance of this inhabitant.
static
<T> Collection<String>
Inhabitants.getNamesFor(Inhabitant<T> i, String indexName)
          Deprecated. Use Inhabitants instead.
protected static 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 AbstractRunLevelService.inhabitantChanged(InhabitantListener.EventType eventType, Inhabitant<?> inhabitant)
           
 boolean HabitatListener.inhabitantIndexChanged(HabitatListener.EventType eventType, Habitat habitat, Inhabitant<?> inhabitant, String index, String name, Object service)
          Called when the habitat index has changed.
 boolean HabitatListenerWeakProxy.inhabitantIndexChanged(HabitatListener.EventType eventType, Habitat habitat, Inhabitant<?> inhabitant, String index, String name, Object service)
           
 void Creator.initialize(T t, Inhabitant onBehalfOf)
          Performs initialization of object, such as dependency injection.
 void InjectionManager.inject(Object component, Inhabitant<?> onBehalfOf, ExecutorService es, InjectionResolver... targets)
          Initializes the component by performing injection.
 void InjectionManager.inject(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, Object serviceOrInhabitant)
           
protected  void Habitat.notify(Habitat.NotifyCall innerCall, Inhabitant<?> inhabitant, HabitatListener.EventType event, String index, Inhabitant<HabitatListener> extraListenerToBeNotified)
           
protected  void Habitat.notify(Habitat.NotifyCall innerCall, Inhabitant<?> inhabitant, HabitatListener.EventType event, String index, Inhabitant<HabitatListener> extraListenerToBeNotified)
           
protected  void Habitat.notify(Inhabitant<?> inhabitant, HabitatListener.EventType event, String index, Inhabitant<HabitatListener> extraListenerToBeNotified)
           
protected  void Habitat.notify(Inhabitant<?> inhabitant, HabitatListener.EventType event, String index, Inhabitant<HabitatListener> extraListenerToBeNotified)
           
protected  void Habitat.notify(Inhabitant<?> inhabitant, HabitatListener.EventType event, String index, String name, Object service, Inhabitant<HabitatListener> extraListenerToBeNotified)
           
protected  void Habitat.notify(Inhabitant<?> inhabitant, HabitatListener.EventType event, String index, String name, Object service, Inhabitant<HabitatListener> extraListenerToBeNotified)
           
 void Habitat.notifyInhabitantChanged(Inhabitant<?> inhabitant, 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(Object component, Inhabitant<?> onBehalfOf, Class type, InjectionResolver... targets)
          Initializes the component by performing injection.
 void AsyncWaiter.watchIfNecessary(Inhabitant<?> i)
          Watches an inhabitant if the service implements AsyncPostConstruct.
 

Method parameters in org.jvnet.hk2.component with type arguments of type Inhabitant
 void Inhabitant.setCompanions(Collection<Inhabitant> companions)
          This method is only meant to be invoked by Habitat.
 List<Inhabitant<?>> InhabitantSorter.sort(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(Object component, Inhabitant<?> onBehalfOf, Class type, 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
 List<Inhabitant<?>> DefaultRunLevelService.sort(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, String index, String name, Object service)
           
protected  ServiceContext DefaultRunLevelService.serviceContext(Exception e, Inhabitant<?> i)
           
 

Method parameters in org.jvnet.hk2.component.internal.runlevel with type arguments of type Inhabitant
protected
<T> Collection<T>
DefaultRunLevelService.narrow(Collection<Inhabitant<T>> inhabs)
          narrow down and return the collection for those runLevelScopes that match
 List<Inhabitant<?>> DefaultRunLevelService.sort(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
 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.