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

io.github.yangyouwang.core.WrapperFactory Maven / Gradle / Ivy

There is a newer version: 1.8
Show newest version
package io.github.yangyouwang.core;

import io.github.yangyouwang.core.ArrayWrapper;
import io.github.yangyouwang.core.BaseReflexWrapper;
import io.github.yangyouwang.core.ConfigWrapper;
import io.github.yangyouwang.consts.ConfigConsts;

/**
 * warpper 工厂类
 * @author yangyouwang
 */
public class WrapperFactory {

    protected static BaseReflexWrapper createWrapper(String dictType) {
        switch (dictType) {
            case ConfigConsts.WRAPPER_TYPE_ARRAY:
                return new ArrayWrapper();
            case ConfigConsts.WRAPPER_TYPE_CONFIG:
                return new ConfigWrapper();
            default:
                return null;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy