Package com.asakusafw.vocabulary.batch

Examples of com.asakusafw.vocabulary.batch.Batch


            LOG.debug("{} => {}", description.getName(), gson.toJson(spec, BatchSpec.class));
        }
    }

    private BatchSpec toSpec(Class<? extends BatchDescription> description) {
        Batch info = description.getAnnotation(Batch.class);
        String batchId = getEnvironment().getConfiguration().getBatchId();
        if (info == null) {
            LOG.warn(MessageFormat.format(
                    "Failed to extract \"@{0}\": {1}",
                    Batch.class.getName(),
                    description.getName()));
            return new BatchSpec(batchId);
        } else {
            String comment = normalizeComment(info.comment());
            boolean strict = info.strict();
            List<Parameter> parameters = toParameters(description, info.parameters());
            return new BatchSpec(info.name(), comment, strict, parameters);
        }
    }
View Full Code Here


    public List<String> getDiagnostics() {
        return diagnostics;
    }

    private void analyze() {
        Batch config = findConfig();
        BatchDescription instance = describe();
        if (hasError()) {
            return;
        }
        this.batchClass = new BatchClass(config, instance);
View Full Code Here

            error(null, "バッチクラスはpublicで宣言する必要があります");
        }
        if (Modifier.isAbstract(description.getModifiers())) {
            error(null, "バッチクラスはabstractで宣言できません");
        }
        Batch conf = description.getAnnotation(Batch.class);
        if (conf == null) {
            error(null, "バッチクラスには@Batch注釈の付与が必要です");
        }
        return conf;
    }
View Full Code Here

TOP

Related Classes of com.asakusafw.vocabulary.batch.Batch

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.