Class ModelBuilder


  • public class ModelBuilder
    extends Object
    Builds model components from configuration. This is essentially the same code as what's in evcustomer.Config, but attempts to generalize it seen to run into classloader problems.
    Author:
    jcollins
    • Method Detail

      • configure

        public void configure()
        Configures this singleton when it's needed. Not called during instance creation to allow testing without a full Spring setup.
      • getBeans

        public Map<String,​Collection<?>> getBeans()
        Retrieves the list of configured beans, given a package prefix and a list of classnames in that package. The final argument should be an instance in the module where the bean classes are found. This is where the classloader comes from.
      • getInstance

        public static ModelBuilder getInstance()
        Singleton accessor
      • recycle

        public static void recycle()