Exemple #1
0
 public InfrastructureFactory getInfrastructureFactory() throws JasonException {
   if (infraFac == null) {
     try {
       String facClass = Config.get().getInfrastructureFactoryClass(infrastructure.getClassName());
       infraFac = (InfrastructureFactory) Class.forName(facClass).newInstance();
     } catch (Exception e) {
       throw new JasonException(
           "The project's infrastructure ('" + infrastructure + "') is unknown!");
     }
   }
   return infraFac;
 }
Exemple #2
0
 public void addDirectiveClass(String id, ClassParameters classname) {
   directiveClasses.put(id, classname.getClassName());
 }