Package org.powertac.customer
Class ModelBuilder
- java.lang.Object
-
- org.powertac.customer.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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configure()
Configures this singleton when it's needed.Map<String,Collection<?>>
getBeans()
Retrieves the list of configured beans, given a package prefix and a list of classnames in that package.static ModelBuilder
getInstance()
Singleton accessorstatic void
recycle()
-
-
-
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()
-
-