[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: GenericBeanFactory and install methods (Repost)
scott.stark@jboss.org
do-not-reply at jboss.com
Wed Apr 9 05:13:46 EDT 2008
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.
| * @throws Exception - on failure to install the component beans
| */
| public List<String> createComponents(String baseName)
| throws Exception;
|
| /**
| * Extract the unique component id from a component bean name.
| * @param name - a name previously returned from createComponents.
| * @return the component id portion of the name
| * @throws NumberFormatException - if name is not a valild bean component
| * name with a component id.
| */
| public long getComponentID(String name) throws NumberFormatException;
|
| /**
| * Uninstall the component beans for the given base name, component id
| * @param baseName - the baseName previously passed to createComponents
| * @throws Exception - on failure to uninstall the component beans
| */
| public void destroyComponents(String baseName, long compID)
| throws Exception;
| }
|
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