Package net.sf.jguiraffe.di.impl.providers
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 $
-
KlassenKlasseBeschreibungAn abstract base class for
BeanProvider
implementations that create beans derived from collections.A concrete implementation of theBeanProvider
interface that will always return the same bean instance.A simple bean provider that creates new bean instances by invoking a constructor.A specialized life-cycle supporting
implementation for creating new bean instances on each invocation.BeanProvider
An abstract base class forBeanProvider
implementations with life-cycle support.A specificCollectionBeanProvider
implementation that creates a list bean.A specializedBeanProvider
implementation for creating beans of typejava.util.Map
.A specializedBeanProvider
that creates beans by invoking a method.A specializedBeanProvider
implementation for creating ajava.util.Properties
object.A specializedCollectionBeanProvider
implementation that creates ajava.util.Set
bean.A base class for simple bean providers.A specialized life-cycle supportingBeanProvider
implementation for creating singleton beans.