@Test public void test_validate_registration() throws Exception { InputStream swConfigStream = Classes.getResourceAsStream("/switchyard-config-validate-01.xml", getClass()); Deployment deployment = new Deployment(swConfigStream); swConfigStream.close(); MockDomain serviceDomain = new MockDomain(); deployment.init(serviceDomain, ActivatorLoader.createActivators(serviceDomain)); ServiceDomain domain = deployment.getDomain(); Validator<?> aValidator = domain.getValidatorRegistry().getValidator(new QName("A")); Validator<?> bValidator = domain.getValidatorRegistry().getValidator(new QName("B")); Assert.assertTrue(aValidator instanceof AValidator); Assert.assertTrue(bValidator instanceof BValidator); 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();  }