Package org.jvnet.hk2.component

Primary API surface of HK2. Start with Habitat.

See:
          Description

Interface Summary
CageBuilder<T> Receives notifications when a component with CagedBy is entered into habitat.
Factory Hook to create/obtain an instance of a component from somewhere, instead of letting the auto-depends create it via the constructor.
Habitat.NotifyCall  
HabitatFactory  
HabitatListener For Listening to the Habitat.
Inhabitant<T> Represents a component in the world of Habitat.
InhabitantFilter Contract used to determine if an inhabitant matches some criteria determined by the implementation.
InhabitantListener For Listening to an Inhabitant.
InhabitantRequested Services implementation may require access to the inhabitant object wrapping them.
InhabitantTracker Tracks an inhabitant, or set of inhabitants.
InhabitantTracker.Callback The callback is called when there is an event changing one of the tracked inhabitants.
InhabitantTrackerContext The filter that is passed to the InhabitantTracker creation.
Injectable A resource that can be injected into a component might optinally want to be notified of such injection.
PostConstruct Classes implementing this interface register an interest in being notified when the instance has been created and the component is about to be place into commission.
PreDestroy Components implementing this interface registers an interest in being notified when they are about to be decommissioned.
RunLevelListener Implementations of RunLevelService are encouraged to use this contract for publishing RunLevel events.
RunLevelService<T> The run level service for a particular class of RunLevel, identified by environment.
RunLevelState<T> Holds the state(s) for a particular RunLevelService.
ServiceContext Information about a service.
Womb<T> Encapsulates how to create an object.
 

Class Summary
CageBuilder.Registerer<T> When CageBuilder enters habitat, look for existing inhabitants that were supposed to be caged by this and cage them all.
Habitat A set of templates that constitute a world of objects.
HabitatListenerWeakProxy A proxy where the underlying HabitatListener is held as a weak proxy and is automatically removed from the habitat if the proxy is GC'ed.
Inhabitants Deprecated. Use Inhabitants instead.
InhabitantTrackerContextBuilder Builder for constructing InhabitantTrackerContext types.
InhabitantTrackerContextBuilder.AlteredLdapMatcherFilter  
InhabitantTrackerContextImpl Default implementation of InhabitantTrackerContext.
InjectionManager InjectionManager is responsible for injecting resources into a component.
MultiMap<K,V> Map from a key to multiple values.
PerLookup Scope local to each invocation.
Scope  
Singleton Singleton scope.
Wombs Womb factory.
 

Enum Summary
HabitatListener.EventType  
InhabitantListener.EventType  
 

Exception Summary
ComponentException Exception thrown when a component's dependency is not satisfied at the time the component is expected to be put in commission.
UnsatisfiedDependencyException Exception thrown by the injection manager when a dependency is not satisfied when performing injection.
 

Package org.jvnet.hk2.component Description

Primary API surface of HK2. Start with Habitat.

This package defines classes and interfaces that constitute the public contract of HK2, together with the annotations package.



Copyright © 2010 Sun Microsystems, Inc.. All Rights Reserved.