Package org.jvnet.hk2.component

Primary API surface of HK2. Start with Habitat.

See:
          Description

Interface Summary
CageBuilder<T> Deprecated. this is scheduled for removal
Creator<T> Encapsulates how to create an object.
Enableable Contract used for enabling/disabling a service, and querying whether it is currently enabled.
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.
InhabitantActivator Contract for handling the activation and releasing of an inhabitant.
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.
InhabitantSorter Contract for sorting inhabitants.
InhabitantsParserFactory  
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 optionally 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> Implementations of this contract are responsible for orchestration lifecycle events (i.e., start levels) in Hk2.
RunLevelState<T> Holds the state(s) for a particular RunLevelService.
ServiceContext Information about a service.
 

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.
Constants Common metadata properties used by the inhabitant / habitat.
Creators Creator factory.
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.
SameThreadExecutor Provides a same-thread executor service for use by Hk2 internals.
Scope  
Singleton Singleton scope.
 

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 © 2011 Oracle Corporation. All Rights Reserved.