All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.oneandone.iocunit.jms.mockrunner.MockRunnerExtension Maven / Gradle / Ivy

There is a newer version: 4.0.3
Show newest version
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