net.anotheria.portalkit.services.bounce.BounceServiceSpringConfigurator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pk-services-bounce Show documentation
Show all versions of pk-services-bounce Show documentation
Bounce service saves mail provider bounces
The newest version!
package net.anotheria.portalkit.services.bounce;
import net.anotheria.anoprise.metafactory.Extension;
import net.anotheria.anoprise.metafactory.MetaFactory;
import net.anotheria.portalkit.services.common.spring.SpringHolder;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
/**
* Configurator that allows distributeme to initialize the service.
*
* @author lrosenberg
* @since 20.07.17 09:43
*/
public class BounceServiceSpringConfigurator {
public static void configure(){
SpringHolder.register(BounceService.class, new AnnotationConfigApplicationContext(BounceServiceConfiguration.class));
MetaFactory.addFactoryClass(BounceService.class, Extension.LOCAL, BounceServiceFactory.class);
}
}