Package net.sf.jguiraffe.di.impl.providers
In the providers sub package different implementations of the
BeanProvider interface can be found.
The implementations in this package can be divided into two groups:
- Simple providers are only responsible for creating new bean instances, which
can happen in a bunch of different ways (e.g. calling
Class.newInstance(), invoking a constructor, using a constant object). - Life-cycle providers wrap a simple provider and add a certain semantic to the create operation. So an implementation exists that calls its simple provider only once and then caches the returned bean. This provider de facto implements a singleton. Another implementation will create a new bean instance for every transaction. These life-cycle providers also support enhanced initialization (e.g. by invoking methods on the created beans).
$Id: package.html 205 2012-01-29 18:29:57Z oheger $
-
Class Summary Class Description CollectionBeanProvider An abstract base class forBeanProviderimplementations that create beans derived from collections.ConstantBeanProvider A concrete implementation of theBeanProviderinterface that will always return the same bean instance.ConstructorBeanProvider A simple bean provider that creates new bean instances by invoking a constructor.FactoryBeanProvider A specialized life-cycle supportingimplementation for creating new bean instances on each invocation.BeanProviderLifeCycleBeanProvider An abstract base class forBeanProviderimplementations with life-cycle support.ListBeanProvider A specificCollectionBeanProviderimplementation that creates a list bean.MapBeanProvider A specializedBeanProviderimplementation for creating beans of typejava.util.Map.MethodInvocationBeanProvider A specializedBeanProviderthat creates beans by invoking a method.PropertiesBeanProvider A specializedBeanProviderimplementation for creating ajava.util.Propertiesobject.SetBeanProvider A specializedCollectionBeanProviderimplementation that creates ajava.util.Setbean.SimpleBeanProvider A base class for simple bean providers.SingletonBeanProvider A specialized life-cycle supportingBeanProviderimplementation for creating singleton beans.