Package dbfit.annotations

Examples of dbfit.annotations.DatabaseEnvironment


public class DbEnvironmentFactory {
    private void initDefaultEnvironments() {
        Reflections reflections = new Reflections("dbfit");
        for (Class<?> c: reflections.getTypesAnnotatedWith(DatabaseEnvironment.class)) {
            DatabaseEnvironment envAnnotation =
                c.getAnnotation(DatabaseEnvironment.class);
            registerEnv(envAnnotation.name(), envAnnotation.driver());
        }
    }
View Full Code Here

TOP

Related Classes of dbfit.annotations.DatabaseEnvironment

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.