com.github.lontime.extcopper.common.DependencyInjectorKind Maven / Gradle / Ivy
package com.github.lontime.extcopper.common;
import org.copperengine.core.DependencyInjector;
import org.copperengine.core.util.PojoDependencyInjector;
import org.copperengine.spring.SpringDependencyInjector;
/**
* DependencyInjectorKind.
* @author lontime
* @since 1.0
*/
public enum DependencyInjectorKind {
/**
* Spring.
*/
SPRING,
/**
* pojo.
*/
POJO;
public DependencyInjector toDependencyInjector() {
switch (this) {
case SPRING:
return new SpringDependencyInjector();
default:
return new PojoDependencyInjector();
}
}
}