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

com.jn.sqlhelper.dialect.instrument.Instrumentations Maven / Gradle / Ivy

package com.jn.sqlhelper.dialect.instrument;

import com.jn.langx.annotation.Name;
import com.jn.langx.util.Preconditions;
import com.jn.langx.util.reflect.Reflects;

public class Instrumentations {
    public static String getAliasName(Instrumentation instrumentation) {
        Preconditions.checkNotNull(instrumentation);
        Name name = Reflects.getAnnotation(instrumentation.getClass(), Name.class);
        if (name != null) {
            return name.value();
        }
        return null;
    }


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy