Package net.sf.jguiraffe.di
Interface BeanInitializer
-
- All Known Implementing Classes:
FactoryBeanProvider
,LifeCycleBeanProvider
,SingletonBeanProvider
public interface BeanInitializer
Definition of an interface for objects that perform some kind of initialization on beans that are managed by a
.BeanContext
The
interface allows adding an arbitrary number of objects implementing this interface. These objects will then be invoked after all beans affected by the current transaction have been created. This way certain cyclic dependencies can be resolved.DependencyProvider
- Version:
- $Id: BeanInitializer.java 205 2012-01-29 18:29:57Z oheger $
- Author:
- Oliver Heger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
initialize(DependencyProvider dependencyProvider)
Performs the desired initialization.
-
-
-
Method Detail
-
initialize
void initialize(DependencyProvider dependencyProvider)
Performs the desired initialization. It is up to a concrete implementation, which actions are performed here. When this method is called all beans affected by the current transaction have been created (if possible). Some of them might not have been initialized yet. Note that this method is called in any case, even if the current transaction fails for some reason.- Parameters:
dependencyProvider
- the dependency provider
-
-