Package org.jberet.job

Examples of org.jberet.job.Listeners


            artifactFactory.destroy(obj);
        }
    }

    private void createJobListeners() {
        Listeners listeners = jobExecution.getSubstitutedJob().getListeners();
        if (listeners != null) {
            List<Listener> listenerList = listeners.getListener();
            int count = listenerList.size();
            this.jobListeners = new JobListener[count];
            for (int i = 0; i < count; i++) {
                Listener listener = listenerList.get(i);
                this.jobListeners[i] = createArtifact(listener.getRef(), null, listener.getProperties());
View Full Code Here


        return noRollbackExceptionClasses == null ||
                !noRollbackExceptionClasses.matches(e.getClass());
    }

    private void createChunkRelatedListeners() {
        Listeners listeners = batchContext.getStep().getListeners();
        if (listeners != null) {
            String ref;
            Object o;
            for (Listener l : listeners.getListener()) {
                ref = l.getRef();
                Class<?> cls = null;
                if (stepRunner.chunkRelatedListeners != null) {
                    cls = stepRunner.chunkRelatedListeners.get(ref);
                }
View Full Code Here

            plan = partition.getPlan();
        }
    }

    private void createStepListeners() {
        Listeners listeners = step.getListeners();
        if (listeners != null) {
            String ref;
            for (Listener listener : listeners.getListener()) {
                ref = listener.getRef();
                Class<?> cls = jobContext.getArtifactClass(ref);
               
                //a class can implement multiple listener interfaces, so need to check it against all listener types
                //even after previous matches
View Full Code Here

TOP

Related Classes of org.jberet.job.Listeners

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.