Package org.jberet.job.model

Examples of org.jberet.job.model.Script


                    collector = jobContext.createArtifact(collectorConfig.getRef(), null, collectorConfig.getProperties(), batchContext);
                }
            }

            if (batchlet.getRef().isEmpty()) {
                final Script script = batchlet.getScript();
                if (script == null) {
                    throw BatchMessages.MESSAGES.failToGetAttribute(XmlAttribute.REF.getLocalName(), null);
                }
                batchletObj = new ScriptBatchlet(script, batchlet.getProperties(),batchContext);
            } else {
View Full Code Here


     * @throws Exception
     */
    Object createArtifact(final RefArtifact refArtifact, final StepContextImpl stepContext, final Class<?> aClass) throws Exception {
        final String ref = refArtifact.getRef();
        if (ref.isEmpty()) {
            final Script script = refArtifact.getScript();
            if (script == null) {
                throw BatchMessages.MESSAGES.failToGetAttribute(XmlAttribute.REF.getLocalName(), null);
            }
            return aClass == ScriptItemReader.class ? new ScriptItemReader(script, refArtifact.getProperties(), stepContext) :
                   aClass == ScriptItemWriter.class ? new ScriptItemWriter(script, refArtifact.getProperties(), stepContext) :
View Full Code Here

TOP

Related Classes of org.jberet.job.model.Script

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.