protected boolean needsPlainPropertyInjection(PropertyDesc propDesc) { final Method writeMethod = propDesc.getWriteMethod(); if (writeMethod == null) { // e.g. getter only or public field, are out of target return false; } // the property has setter final String fqcn = writeMethod.getDeclaringClass().getName(); if (fqcn.startsWith("org.lastaflute.") || fqcn.startsWith("org.dbflute.")) { return true; } final String specified1 = LastaDiProperties.getInstance().getPlainPropertyInjectionPackage1(); if (specified1 != null && fqcn.startsWith(specified1)) { return true; } return false; } }