com.oneandone.iocunit.jms.mockrunner.MockRunnerExtension Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ioc-unit-jms-mockrunner Show documentation
Show all versions of ioc-unit-jms-mockrunner Show documentation
Adds mockrunner jms-implementation
package com.oneandone.iocunit.jms.mockrunner;
import javax.enterprise.event.Observes;
import javax.enterprise.inject.spi.AfterBeanDiscovery;
import javax.enterprise.inject.spi.BeanManager;
import javax.enterprise.inject.spi.Extension;
import com.oneandone.cdi.weldstarter.ExtensionSupport;
/**
* @author aschoerk
*/
public class MockRunnerExtension implements Extension {
public void processAfterBeanDiscovery(@Observes AfterBeanDiscovery abd, BeanManager bm) {
TestExtensionServices.testClasses.forEach(c -> ExtensionSupport.addTypeAfterBeanDiscovery(abd, bm, c));
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy