gnu.beanfactory
Interface FactoryAdapter

All Known Implementing Classes:
ConnectionAdapter, RMIReferenceAdapter

public interface FactoryAdapter

An adapter interface for instantiating beans that are emitted from their own factories. Instead of instantiating the target bean, the BeanFactory will instantiate a FactoryAdapter instance. The setXXX methods are invoked against the FactoryAdapter instead of the target bean. After initialization is complete, BeanFactory calls createBean() which emits the target Bean.

Version:
$Id: FactoryAdapter.java,v 1.10 2001/10/04 17:35:29 rschoening Exp $
Author:
Rob Schoening <rob@beanfactory.net>

Method Summary
 java.lang.Object createBean()
          Emits a bean.
 

Method Detail

createBean

public java.lang.Object createBean()
                            throws EncapsulatedException
Emits a bean.
Returns:
the bean