com.ibm.jbatch.container.modelresolver.impl
Class AbstractPropertyResolver<B>

java.lang.Object
  extended by com.ibm.jbatch.container.modelresolver.impl.AbstractPropertyResolver<B>
All Implemented Interfaces:
PropertyResolver<B>
Direct Known Subclasses:
AnalyzerPropertyResolverImpl, BatchletPropertyResolverImpl, CheckpointAlgorithmPropertyResolverImpl, ChunkPropertyResolverImpl, CollectorPropertyResolverImpl, ControlElementPropertyResolverImpl, DecisionPropertyResolverImpl, FlowPropertyResolverImpl, ItemProcessorPropertyResolverImpl, ItemReaderPropertyResolverImpl, ItemWriterPropertyResolverImpl, JobPropertyResolverImpl, ListenerPropertyResolverImpl, PartitionMapperPropertyResolverImpl, PartitionPlanPropertyResolverImpl, PartitionPropertyResolverImpl, PartitionReducerPropertyResolverImpl, SplitPropertyResolverImpl, StepPropertyResolverImpl

public abstract class AbstractPropertyResolver<B>
extends Object
implements PropertyResolver<B>


Field Summary
protected  boolean isPartitionedStep
           
static String UNRESOLVED_PROP_VALUE
           
 
Constructor Summary
AbstractPropertyResolver(boolean isPartitionStep)
           
 
Method Summary
protected  String replaceAllProperties(String str, Properties submittedProps, Properties xmlProperties)
          Replace all the properties in String str.
protected  Properties resolveElementProperties(List<Property> elementProperties, Properties submittedProps, Properties parentProps)
           
 B substituteProperties(B b)
          Convenience method that is the same as calling substituteProperties(batchElement, null, null)
 B substituteProperties(B b, Properties submittedProps)
          Convenience method that is the same as calling substituteProperties(batchElement, submittedProps, null)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ibm.jbatch.container.modelresolver.PropertyResolver
substituteProperties
 

Field Detail

isPartitionedStep

protected boolean isPartitionedStep

UNRESOLVED_PROP_VALUE

public static final String UNRESOLVED_PROP_VALUE
See Also:
Constant Field Values
Constructor Detail

AbstractPropertyResolver

public AbstractPropertyResolver(boolean isPartitionStep)
Method Detail

substituteProperties

public B substituteProperties(B b)
Description copied from interface: PropertyResolver
Convenience method that is the same as calling substituteProperties(batchElement, null, null)

Specified by:
substituteProperties in interface PropertyResolver<B>
Returns:

substituteProperties

public B substituteProperties(B b,
                              Properties submittedProps)
Description copied from interface: PropertyResolver
Convenience method that is the same as calling substituteProperties(batchElement, submittedProps, null)

Specified by:
substituteProperties in interface PropertyResolver<B>

resolveElementProperties

protected Properties resolveElementProperties(List<Property> elementProperties,
                                              Properties submittedProps,
                                              Properties parentProps)
Parameters:
elementProperties - xml properties that are direct children of the current element
submittedProps - submitted job properties
parentProps - resolved parent properties
Returns:
the properties associated with this elements scope

replaceAllProperties

protected String replaceAllProperties(String str,
                                      Properties submittedProps,
                                      Properties xmlProperties)
Replace all the properties in String str.

Parameters:
str -
submittedProps -
xmlProperties -
Returns:


Copyright © 2013. All Rights Reserved.