net.sf.jguiraffe.di
Interface BeanCreationListener

All Superinterfaces:
java.util.EventListener

public interface BeanCreationListener
extends java.util.EventListener

Definition of an interface for objects that are interested in the creation of beans by a BeanContext.

Objects implementing this interface can be registered at a BeanContext as bean creation listeners. They will then be notified whenever a new bean is created by the context. This is a very powerful means of intercepting the bean creation process. For instance, a listener can perform enhanced initialization on certain types of beans and inject property values that are known at runtime only.

Version:
$Id: BeanCreationListener.java 156 2009-03-03 21:04:47Z oheger $
Author:
Oliver Heger

Method Summary
 void beanCreated(BeanCreationEvent event)
          Notifies this listener about the creation of a new bean.
 

Method Detail

beanCreated

void beanCreated(BeanCreationEvent event)
Notifies this listener about the creation of a new bean. The passed in event object contains all information available about the new bean.

Parameters:
event - the event with information about the bean creation


Copyright © 2009 The JGUIraffe Team. All Rights Reserved.