[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: GenericBeanFactory and install methods

scott.stark@jboss.org do-not-reply at jboss.com
Wed Apr 9 04:59:47 EDT 2008


A little more fleshed out:

  | /**
  |  * A factory for creating a collection of related mc beans based on a
  |  * template of BeanMetaData[] from a BeanMetaDataFactory.
  |  * 
  |  * @author Scott.Stark at jboss.org
  |  * @version $Revision:$
  |  */
  | public interface ComponentFactory
  | {
  |    /**
  |     * the factory which defines template BeanMetaData[] for the components
  |     * @return the BeanMetaDataFactory defining the component beans
  |     */
  |    public BeanMetaDataFactory getFactory();
  | 
  |    /**
  |     * Install a collection of mc beans based on the factory metadata.
  |     * 
  |     * @param baseName - the base bean name used in conjuction wth the factory.getBeans()
  |     *    BeanMetaData instances getName() to build the unique bean name:
  |     *    baseName + bmd.getName() + "#" + compID;
  |     * @return the list of mc bean names installed.
  |     */
  |    public List<String> createComponents(String baseName);
  | }
  | 


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142624#4142624

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142624



More information about the jboss-dev-forums mailing list