A helper class for creating bean instances that are defined in configuration files.
This class provides utility methods related to bean creation operations. These methods simplify such operations because a client need not deal with all involved interfaces. Usually, if a bean declaration has already been obtained, a single method call is necessary to create a new bean instance.
This class also supports the registration of custom bean factories. Implementations of the {@link BeanFactory} interface can beregistered under a symbolic name using the {@code registerBeanFactory()}method. In the configuration file the name of the bean factory can be specified in the bean declaration. Then this factory will be used to create the bean.
In order to create beans using {@code BeanHelper}, create and instance of this class and initialize it accordingly - a default {@link BeanFactory}can be passed to the constructor, and additional bean factories can be registered (see above). Then this instance can be used to create beans from {@link BeanDeclaration} objects. {@code BeanHelper} is thread-safe. So aninstance can be passed around in an application and shared between multiple components.
@since 1.3
@version $Id: BeanHelper.java 1624601 2014-09-12 18:04:36Z oheger $