private synchronized List<ListenerInfo> getStepListenerInfo(Step step, InjectionReferences injectionRefs) { if (!stepLevelListenerInfo.containsKey(step.getId())) { List<ListenerInfo> stepListenerInfoList = new ArrayList<ListenerInfo>(); stepLevelListenerInfo.put(step.getId(), stepListenerInfoList); Listeners stepLevelListeners = step.getListeners(); if (stepLevelListeners != null) { for (Listener listener : stepLevelListeners.getListenerList()) { ListenerInfo info = buildListenerInfo(listener, injectionRefs); stepListenerInfoList.add(info); } } return stepListenerInfoList; } else { return stepLevelListenerInfo.get(step.getId()); } }
private synchronized List<ListenerInfo> getStepListenerInfo(Step step, InjectionReferences injectionRefs) { if (!stepLevelListenerInfo.containsKey(step.getId())) { List<ListenerInfo> stepListenerInfoList = new ArrayList<ListenerInfo>(); stepLevelListenerInfo.put(step.getId(), stepListenerInfoList); Listeners stepLevelListeners = step.getListeners(); if (stepLevelListeners != null) { for (Listener listener : stepLevelListeners.getListenerList()) { ListenerInfo info = buildListenerInfo(listener, injectionRefs); stepListenerInfoList.add(info); } } return stepListenerInfoList; } else { return stepLevelListenerInfo.get(step.getId()); } }
private synchronized List<ListenerInfo> getStepListenerInfo(Step step, InjectionReferences injectionRefs) { if (!stepLevelListenerInfo.containsKey(step.getId())) { List<ListenerInfo> stepListenerInfoList = new ArrayList<ListenerInfo>(); stepLevelListenerInfo.put(step.getId(), stepListenerInfoList); Listeners stepLevelListeners = step.getListeners(); if (stepLevelListeners != null) { for (Listener listener : stepLevelListeners.getListenerList()) { ListenerInfo info = buildListenerInfo(listener, injectionRefs); stepListenerInfoList.add(info); } } return stepListenerInfoList; } else { return stepLevelListenerInfo.get(step.getId()); } }
public static boolean equals(Step step1, Step step2) { if(step1 == null && step2 == null) return true; if(step1 == null || step2 == null) return false; //TODO: finish with remaining fields return equals(step1.getChunk(), step2.getChunk()) && equals(step1.getListeners(), step2.getListeners()) && equals(step1.getProperties(), step2.getProperties()) && nullSafeEquals(step1.getAllowStartIfComplete(), step2.getAllowStartIfComplete()) && nullSafeEquals(step1.getNextFromAttribute(), step2.getNextFromAttribute()); }
public static boolean equals(Step step1, Step step2) { if(step1 == null && step2 == null) return true; if(step1 == null || step2 == null) return false; //TODO: finish with remaining fields return equals(step1.getChunk(), step2.getChunk()) && equals(step1.getListeners(), step2.getListeners()) && equals(step1.getProperties(), step2.getProperties()) && nullSafeEquals(step1.getAllowStartIfComplete(), step2.getAllowStartIfComplete()) && nullSafeEquals(step1.getNextFromAttribute(), step2.getNextFromAttribute()); }
public static boolean equals(Step step1, Step step2) { if(step1 == null && step2 == null) return true; if(step1 == null || step2 == null) return false; //TODO: finish with remaining fields return equals(step1.getChunk(), step2.getChunk()) && equals(step1.getListeners(), step2.getListeners()) && equals(step1.getProperties(), step2.getProperties()) && nullSafeEquals(step1.getAllowStartIfComplete(), step2.getAllowStartIfComplete()) && nullSafeEquals(step1.getNextFromAttribute(), step2.getNextFromAttribute()); }
if (step.getListeners() != null) { for (final Listener listener : step.getListeners().getListenerList()) { PropertyResolverFactory.createListenerPropertyResolver(this.isPartitionedStep).substituteProperties(listener, submittedProps, currentProps);
if (step.getListeners() != null) { for (final Listener listener : step.getListeners().getListenerList()) { PropertyResolverFactory.createListenerPropertyResolver(this.isPartitionedStep).substituteProperties(listener, submittedProps, currentProps);
if (step.getListeners() != null) { for (final Listener listener : step.getListeners().getListenerList()) { PropertyResolverFactory.createListenerPropertyResolver(this.isPartitionedStep).substituteProperties(listener, submittedProps, currentProps);
newStep.setListeners(CloneUtility.cloneListeners(step.getListeners()));
newStep.setListeners(CloneUtility.cloneListeners(step.getListeners()));
newStep.setListeners(CloneUtility.cloneListeners(step.getListeners()));