Interface BeanBuilderFactory

  • All Known Implementing Classes:
    JellyBeanBuilderFactory

    public interface BeanBuilderFactory

    Definition of an interface for querying new BeanBuilder objects.

    This interface provides a generic means for obtaining a new BeanBuilder instance that can be used for processing a script with bean definitions. It is a typical factory interface decoupling its clients from the concrete builder implementation.

    Note: An implementation is intended to be thread-safe, so that it can be shared between multiple threads. For the returned BeanBuilder instances however, this is not the case. They should be used by a single thread only.

    Version:
    $Id: BeanBuilderFactory.java 205 2012-01-29 18:29:57Z oheger $
    Author:
    Oliver Heger
    • Method Detail

      • getBeanBuilder

        BeanBuilder getBeanBuilder()
                            throws BuilderException
        Returns a BeanBuilder object for processing a script with bean definitions. The returned object is fully initialized and can be used immediately.
        Returns:
        a new BeanBuilder instance
        Throws:
        BuilderException - if an error occurs