@Test public void testActivationTypes() throws Exception { InputStream swConfigStream = Classes.getResourceAsStream("/switchyard-config-mock-01.xml", getClass()); Deployment deployment = new Deployment(swConfigStream); swConfigStream.close(); List<String> types = deployment.getActivationTypes(); Assert.assertEquals(1, types.size()); Assert.assertEquals("mock", types.iterator().next()); }
public List<String> getActivationTypes() { HashSet<String> types = new HashSet<String>(); CompositeModel composite = getConfig().getComposite(); if (composite != null) { for (CompositeReferenceModel reference : composite.getReferences()) { for (BindingModel binding : reference.getBindings()) { types.add(binding.getType()); } } for (CompositeServiceModel service : composite.getServices()) { for (BindingModel binding : service.getBindings()) { types.add(binding.getType()); } } for (ComponentModel component : composite.getComponents()) { if (component.getImplementation() != null) { types.add(component.getImplementation().getType()); } } } return new ArrayList<String>(types); }
Deployment extends AbstractDeployment { public List<String> getActivationTypes() { HashSet<String> types = new HashSet<String>(); CompositeModel composite = getConfig().getComposite(); if (composite != null) { for (CompositeReferenceModel reference : composite.getReferences()) { for (BindingModel binding : reference.getBindings()) { types.add(binding.getType()); } } for (CompositeServiceModel service : composite.getServices()) { for (BindingModel binding : service.getBindings()) { types.add(binding.getType()); } } for (ComponentModel component : composite.getComponents()) { if (component.getImplementation() != null) { types.add(component.getImplementation().getType()); } } } return new ArrayList<String>(types); } }
Deployment extends AbstractDeployment { public List<String> getActivationTypes() { HashSet<String> types = new HashSet<String>(); CompositeModel composite = getConfig().getComposite(); if (composite != null) { for (CompositeReferenceModel reference : composite.getReferences()) { for (BindingModel binding : reference.getBindings()) { types.add(binding.getType()); } } for (CompositeServiceModel service : composite.getServices()) { for (BindingModel binding : service.getBindings()) { types.add(binding.getType()); } } for (ComponentModel component : composite.getComponents()) { if (component.getImplementation() != null) { types.add(component.getImplementation().getType()); } } } return new ArrayList<String>(types); } Deployment(InputStream configStream);  Deployment(SwitchYardModel configModel); }
Deployment extends AbstractDeployment { public List<String> getActivationTypes() { HashSet<String> types = new HashSet<String>(); CompositeModel composite = getConfig().getComposite(); if (composite != null) { for (CompositeReferenceModel reference : composite.getReferences()) { for (BindingModel binding : reference.getBindings()) { types.add(binding.getType()); } } for (CompositeServiceModel service : composite.getServices()) { for (BindingModel binding : service.getBindings()) { types.add(binding.getType()); } } for (ComponentModel component : composite.getComponents()) { if (component.getImplementation() != null) { types.add(component.getImplementation().getType()); } } } return new ArrayList<String>(types); } Deployment(InputStream configStream);  Deployment(SwitchYardModel configModel); void start(); void stop(); void destroy(); @Override Lifecycle getGatwayLifecycle(final QName serviceName, final String bindingName); Activator findActivator(String type); List<String> getActivationTypes(); }
Deployment extends AbstractDeployment { public List<String> getActivationTypes() { HashSet<String> types = new HashSet<String>(); CompositeModel composite = getConfig().getComposite(); if (composite != null) { for (CompositeReferenceModel reference : composite.getReferences()) { for (BindingModel binding : reference.getBindings()) { types.add(binding.getType()); } } for (CompositeServiceModel service : composite.getServices()) { for (BindingModel binding : service.getBindings()) { types.add(binding.getType()); } } for (ComponentModel component : composite.getComponents()) { if (component.getImplementation() != null) { types.add(component.getImplementation().getType()); } } } return new ArrayList<String>(types); } Deployment(InputStream configStream);  Deployment(SwitchYardModel configModel); void start(); void stop(); void destroy(); @Override Lifecycle getGatwayLifecycle(final QName serviceName, final String bindingName); Activator findActivator(String type); List<String> getActivationTypes();  }