@Test public void testInstantiation() { DefaultTemplateFactory tplf = new DefaultTemplateFactory(NamingService.newNodeNS(), NamingService.newVMNS(), new DefaultModel()); Assert.assertTrue(tplf.getAvailables().isEmpty()); }
@Override public Set<String> getAvailables() { return vmTpls.keySet(); }
DefaultTemplateFactory implements TemplateFactory { @Override public Set<String> getAvailables() { return vmTpls.keySet(); } }
DefaultTemplateFactory implements TemplateFactory { @Override public Set<String> getAvailables() { return vmTpls.keySet(); } DefaultTemplateFactory(NamingService<Node> srvNodes, NamingService<VM> srvVMs, Model m); }
DefaultTemplateFactory implements TemplateFactory { @Override public Set<String> getAvailables() { return vmTpls.keySet(); } DefaultTemplateFactory(NamingService<Node> srvNodes, NamingService<VM> srvVMs, Model m); @Override Set<String> getAvailables(); @Override boolean isAvailable(String id); @Override void check(Script scr, String tplName, Element e, Map<String, String> attrs); @Override Template register(Template tpl); }
DefaultTemplateFactory implements TemplateFactory { @Override public Set<String> getAvailables() { return vmTpls.keySet(); } DefaultTemplateFactory(NamingService<Node> srvNodes, NamingService<VM> srvVMs, Model m); @Override Set<String> getAvailables(); @Override boolean isAvailable(String id); @Override void check(Script scr, String tplName, Element e, Map<String, String> attrs); @Override Template register(Template tpl);  }