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

com.github.lontime.extcopper.common.DependencyInjectorKind Maven / Gradle / Ivy

There is a newer version: 1.4.0
Show newest version
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();
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy