@Test public void test_transform_registration() throws Exception { InputStream swConfigStream = Classes.getResourceAsStream("/switchyard-config-transform-01.xml", getClass()); Deployment deployment = new Deployment(swConfigStream); swConfigStream.close(); MockDomain serviceDomain = new MockDomain(); deployment.init(serviceDomain, ActivatorLoader.createActivators(serviceDomain)); ServiceDomain domain = deployment.getDomain(); Transformer<?,?> abTransformer = domain.getTransformerRegistry().getTransformer(new QName("A"), new QName("B")); Transformer<?,?> cdTransformer = domain.getTransformerRegistry().getTransformer(new QName("C"), new QName("D")); Assert.assertTrue(abTransformer instanceof ABTransformer); Assert.assertTrue(cdTransformer instanceof CDTransformer); deployment.destroy(); }
public void destroy() { _log.debug("Destroying deployment " + getName()); _serviceBindings.clear(); _components.clear(); _referenceBindings.clear(); getValidatorRegistryLoader().unregisterValidators(); getTransformerRegistryLoader().unregisterTransformers(); getDomain().getEventPublisher().publish(new ApplicationUndeployedEvent(this)); getDomain().destroy(); }
Deployment extends AbstractDeployment { public void destroy() { _log.debug("Destroying deployment " + getName()); _serviceBindings.clear(); _components.clear(); _referenceBindings.clear(); getValidatorRegistryLoader().unregisterValidators(); getTransformerRegistryLoader().unregisterTransformers(); getDomain().getEventPublisher().publish(new ApplicationUndeployedEvent(this)); getDomain().destroy(); } }
Deployment extends AbstractDeployment { public void destroy() { _log.debug("Destroying deployment " + getName()); _serviceBindings.clear(); _components.clear(); _referenceBindings.clear(); getValidatorRegistryLoader().unregisterValidators(); getTransformerRegistryLoader().unregisterTransformers(); getDomain().getEventPublisher().publish(new ApplicationUndeployedEvent(this)); getDomain().destroy(); } Deployment(InputStream configStream);  Deployment(SwitchYardModel configModel); }
Deployment extends AbstractDeployment { public void destroy() { _log.debug("Destroying deployment " + getName()); _serviceBindings.clear(); _components.clear(); _referenceBindings.clear(); getValidatorRegistryLoader().unregisterValidators(); getTransformerRegistryLoader().unregisterTransformers(); getDomain().getEventPublisher().publish(new ApplicationUndeployedEvent(this)); getDomain().destroy(); } 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 void destroy() { _log.debug("Destroying deployment " + getName()); _serviceBindings.clear(); _components.clear(); _referenceBindings.clear(); getValidatorRegistryLoader().unregisterValidators(); getTransformerRegistryLoader().unregisterTransformers(); getDomain().getEventPublisher().publish(new ApplicationUndeployedEvent(this)); getDomain().destroy(); } 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();  }