Search in sources :

Example 1 with DfClassificationResourceAnalyzer

use of org.dbflute.properties.assistant.classification.DfClassificationResourceAnalyzer in project dbflute-core by dbflute.

the class DfClassificationProperties method extractClassificationResource.

protected List<DfClassificationTop> extractClassificationResource() {
    final DfClassificationResourceAnalyzer analyzer = new DfClassificationResourceAnalyzer();
    final String dirBaseName = "./dfprop";
    final String resource = NAME_CLASSIFICATION_RESOURCE;
    final String extension = "dfprop";
    if (isSpecifiedEnvironmentType()) {
        final String dirEnvName = dirBaseName + "/" + getEnvironmentType();
        final List<DfClassificationTop> ls = analyzer.analyze(dirEnvName, resource, extension);
        if (!ls.isEmpty()) {
            return ls;
        }
        return analyzer.analyze(dirBaseName, resource, extension);
    } else {
        return analyzer.analyze(dirBaseName, resource, extension);
    }
}
Also used : DfClassificationTop(org.dbflute.properties.assistant.classification.DfClassificationTop) DfClassificationResourceAnalyzer(org.dbflute.properties.assistant.classification.DfClassificationResourceAnalyzer)

Aggregations

DfClassificationResourceAnalyzer (org.dbflute.properties.assistant.classification.DfClassificationResourceAnalyzer)1 DfClassificationTop (org.dbflute.properties.assistant.classification.DfClassificationTop)1