Uses of Class
org.jvnet.hk2.component.Habitat

Packages that use Habitat
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.classmodel   
org.jvnet.hk2.component.internal.runlevel   
org.jvnet.hk2.junit   
 

Uses of Habitat in com.sun.hk2.component
 

Fields in com.sun.hk2.component declared as Habitat
 Habitat InhabitantsParser.habitat
           
protected  Habitat LazyInhabitant.habitat
           
protected  Habitat AbstractCreatorImpl.habitat
           
 

Methods in com.sun.hk2.component with parameters of type Habitat
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 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)
           
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  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)
           
protected  InjectionResolver[] AbstractCreatorImpl.getInjectionResolvers(T t, Habitat h)
           
protected
<V> Provider<V>
InjectInjectionResolver.getProviderByContract(Habitat habitat, Inhabitant<?> onBehalfOf, AnnotatedElement target, Type genericType, Inject inject)
           
protected  void AbstractCreatorImpl.inject(Habitat habitat, T t, Inhabitant<?> onBehalfOf)
          Performs resource injection on the given instance from the given habitat.
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)
           
 

Constructors in com.sun.hk2.component with parameters of type Habitat
AbstractCreatorImpl(Class<? extends T> type, Habitat habitat, MultiMap<String,String> metadata)
           
ConstructorCreator(Class<? extends T> type, Habitat habitat, MultiMap<String,String> metadata)
           
ConstructorWomb(Class<T> type, Habitat habitat, MultiMap<String,String> metadata)
          Deprecated.  
FactoryCreator(Class<T> type, Class<? extends Factory> factory, Habitat habitat, MultiMap<String,String> metadata)
           
FactoryCreator(Class<T> type, Inhabitant<? extends Factory> factory, Habitat habitat, MultiMap<String,String> metadata)
           
InhabitantsParser(Habitat habitat)
           
InjectableParametizedConstructorCreator(Class<T> type, Constructor<T> ctor, Habitat habitat, MultiMap<String,String> metadata)
           
InjectInjectionResolver(Habitat habitat)
           
LazyInhabitant(Habitat habitat, Holder<ClassLoader> cl, String typeName, MultiMap<String,String> metadata)
           
LazyInhabitant(Habitat habitat, Holder<ClassLoader> cl, String typeName, MultiMap<String,String> metadata, Inhabitant<?> lead)
           
RunLevelInhabitantProvider(Habitat h)
           
 

Uses of Habitat in org.jvnet.hk2.component
 

Methods in org.jvnet.hk2.component that return Habitat
 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.
 

Methods in org.jvnet.hk2.component with parameters of type Habitat
static
<T> Creator<T>
Creators.create(Class<T> c, Habitat habitat, MultiMap<String,String> metadata)
           
static
<T> Inhabitant<T>
Inhabitants.create(Class<T> c, Habitat habitat, MultiMap<String,String> metadata)
          Deprecated. Use Inhabitants instead.
static InhabitantTrackerContextBuilder InhabitantTrackerContextBuilder.create(Habitat h)
          Creates a builder appropriate for the given habitat
 InhabitantsParser InhabitantsParserFactory.createInhabitantsParser(Habitat habitat)
           
static List<Inhabitant<? extends InjectionResolver>> Creators.getAllInjectionResolvers(Habitat habitat)
          Returns all currently available injection annotations
 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 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 InhabitantTracker.Callback.updated(InhabitantTracker t, Habitat h, boolean initial)
          Called when there is a modification to the set of inhabitants of some kind.
 

Uses of Habitat in org.jvnet.hk2.component.classmodel
 

Methods in org.jvnet.hk2.component.classmodel with parameters of type Habitat
static ClassPath ClassPath.create(Habitat h, boolean allowTestClassPath)
          Creates a ClassPathHelper instance.
static ClassPath ClassPath.create(Habitat h, Collection<File> classPath)
           
static InhabitantsParsingContextGenerator InhabitantsParsingContextGenerator.create(Habitat h, ExecutorService es, ClassPath inhabitantsClassPath, FileFilter inhabitantsClassPathFilter)
          Factory for the InhabitantsParsingContextGenerator
static InhabitantsFeed InhabitantsFeed.create(Habitat h, InhabitantsParser ip)
          Creates an InhabitantsHabitatFeed.
static ClassPath ClassPath.create(Habitat h, String classPath)
           
 

Uses of Habitat in org.jvnet.hk2.component.internal.runlevel
 

Methods in org.jvnet.hk2.component.internal.runlevel with parameters of type Habitat
 RunLevelService<?> RunLevelServices.get(Habitat habitat, int rl, Class<?> scope)
          Find the RunLevelService appropriate for the specified RunLevel
 RunLevelService<?> RunLevelServices.get(Habitat habitat, int rl, String scopeName)
           
 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.inhabitantIndexChanged(HabitatListener.EventType eventType, Habitat habitat, Inhabitant<?> inhabitant, String index, String name, Object service)
           
 

Uses of Habitat in org.jvnet.hk2.junit
 

Methods in org.jvnet.hk2.junit that return Habitat
 Habitat Hk2TestServices.createHabitat()
           
static Habitat Hk2Runner.createHabitat()
           
 Habitat Hk2TestServices.createPopulatedHabitat()
           
 Habitat Hk2TestServices.getHabitat()
           
static Habitat Hk2Runner.getHabitat()
           
 

Methods in org.jvnet.hk2.junit with parameters of type Habitat
 InhabitantsParser Hk2TestServices.createInhabitantsParser(Habitat h)
           
 void Hk2Test.Populator.populate(Habitat habitat)
           
protected  void Hk2TestServices.populateHabitat(Habitat habitat, InhabitantsParser ip)
           
 



Copyright © 2011 Oracle Corporation. All Rights Reserved.