Search in sources :

Example 1 with DfLastaFluteFreeGenReflector

use of org.dbflute.properties.assistant.lastaflute.DfLastaFluteFreeGenReflector in project dbflute-core by dbflute.

the class DfLastaFluteProperties method reflectFreeGenMap.

// ===================================================================================
// FreeGen
// =======
public void reflectFreeGenMap(Map<String, Object> freeGenMap) {
    final Map<String, Object> lastafluteMap = getLastafluteMap();
    final String serviceName = findServiceName(lastafluteMap);
    if (Srl.is_Null_or_TrimmedEmpty(serviceName)) {
        // no use
        return;
    }
    show("...Loading freeGen settings from lastafluteMap: " + serviceName);
    final String domainPackage = (String) lastafluteMap.get("domainPackage");
    if (domainPackage == null) {
        throw new DfIllegalPropertySettingException("The property 'domainPackage' is required: " + lastafluteMap.keySet());
    }
    final String lastaDocDir = getLastaDocOutputDirectory();
    final DfLastaFluteFreeGenReflector reflector = createFreeGenReflector(lastafluteMap, freeGenMap, serviceName, domainPackage);
    reflector.reflectFrom(lastafluteMap, lastaDocDir);
}
Also used : DfLastaFluteFreeGenReflector(org.dbflute.properties.assistant.lastaflute.DfLastaFluteFreeGenReflector) DfIllegalPropertySettingException(org.dbflute.exception.DfIllegalPropertySettingException)

Aggregations

DfIllegalPropertySettingException (org.dbflute.exception.DfIllegalPropertySettingException)1 DfLastaFluteFreeGenReflector (org.dbflute.properties.assistant.lastaflute.DfLastaFluteFreeGenReflector)1