You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hivemind.apache.org by James Carman <ja...@carmanconsulting.com> on 2005/02/27 20:47:12 UTC

New method on RegistryBuilder...

Why don't we just add the following method to RegistryBuilder.

 

/**

 * Adds the default module descriptor provider to this
<code>RegistryBuilder</code>.

 * @since 1.1

 * @see #constructDefaultRegistry()

 *

 */

 public void addDefaultModuleDescriptorProvider()

 {

   addModuleDescriptorProvider(new XmlModuleDescriptorProvider(new
DefaultClassResolver()));

 }

 

Of course, to avoid duplication, we would change the createDefaultRegistry()
method to call this method prior to calling constructRegistry().