public JobContext getJobContext() { return injectionReferences == null ? null : injectionReferences.getJobContext(); }
@Produces @Dependent public JobContext getJobContext() { if (ProxyFactory.getInjectionReferences() != null) { return ProxyFactory.getInjectionReferences().getJobContext(); } else { return null; } }
@Produces @Dependent public JobContext getJobContext() { if (ProxyFactory.getInjectionReferences() != null) { return ProxyFactory.getInjectionReferences().getJobContext(); } else { return null; } }
public static void injectReferences(Object artifact, InjectionReferences injectionRefs) { if (logger.isLoggable(Level.FINE)) { logger.fine("Injecting references into: " + artifact); logger.fine("InjectionReferences = " + injectionRefs); } Map<String, Field> propertyMap = findPropertyFields(artifact); if (injectionRefs.getProps() != null) { injectProperties(artifact, injectionRefs.getProps(), propertyMap); } injectBatchContextFields(artifact, injectionRefs.getJobContext(), injectionRefs.getStepContext()); if (logger.isLoggable(Level.FINE)) { logger.exiting(sourceClass, "injectReferences"); } }
public static void injectReferences(Object artifact, InjectionReferences injectionRefs) { if (logger.isLoggable(Level.FINE)) { logger.fine("Injecting references into: " + artifact); logger.fine("InjectionReferences = " + injectionRefs); } Map<String, Field> propertyMap = findPropertyFields(artifact); if (injectionRefs.getProps() != null) { injectProperties(artifact, injectionRefs.getProps(), propertyMap); } injectBatchContextFields(artifact, injectionRefs.getJobContext(), injectionRefs.getStepContext()); if (logger.isLoggable(Level.FINE)) { logger.exiting(sourceClass, "injectReferences"); } }
public static void injectReferences(Object artifact, InjectionReferences injectionRefs) { if (logger.isLoggable(Level.FINE)) { logger.fine("Injecting references into: " + artifact); logger.fine("InjectionReferences = " + injectionRefs); } Map<String, Field> propertyMap = findPropertyFields(artifact); if (injectionRefs.getProps() != null) { injectProperties(artifact, injectionRefs.getProps(), propertyMap); } injectBatchContextFields(artifact, injectionRefs.getJobContext(), injectionRefs.getStepContext()); if (logger.isLoggable(Level.FINE)) { logger.exiting(sourceClass, "injectReferences"); } }