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; }
public void addDirectiveClass(String id, ClassParameters classname) { directiveClasses.put(id, classname.getClassName()); }