Package org.jvnet.hk2.component

Primary API surface of HK2. Start with Habitat.

See:
          Description

Interface Summary
CageBuilder 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.
Inhabitant<T> Represents a component in the world of Habitat.
InhabitantRequested Services implementation may require access to the inhabitant object wrapping them.
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.
Womb<T> Encapsulates how to create an object.
 

Class Summary
CageBuilder.Registerer 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.
Inhabitants Factory for Inhabitant.
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.
 

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.
UnsatisfiedDepedencyException 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 © 2009 Sun Microsystems, Inc.. All Rights Reserved.