/** * Method buildProperties returns a new {@link Properties} instance with all property values for this type * using the given Map of property values as defaults. The given Map will not be modified. * <p> * If no values have been set, all default properties and values will be returned. * * @return a new Properties instance */ public Properties buildProperties( Map<Object, Object> defaultProperties ) { return buildProperties( PropertyUtil.createProperties( defaultProperties, null ) ); }
/** * Method buildProperties returns a new {@link Properties} instance with all property values for this type * using the given Iterable<Map.Entry<String, String>> of property values as defaults. The given Iterable will not be modified. * <p> * If no values have been set, all default properties and values will be returned. * * @return a new Properties instance */ public Properties buildProperties( Iterable<Map.Entry<String, String>> defaultProperties ) { return buildProperties( PropertyUtil.createProperties( defaultProperties ) ); }
public CascadingServices( Map<Object, Object> properties ) { this.properties = PropertyUtil.createProperties( properties, defaultProperties ); this.enableContainer = PropertyUtil.getProperty( properties, CONTAINER_ENABLED, defaultProperties.getProperty( CONTAINER_ENABLED, "false" ) ).equalsIgnoreCase( "true" ); }
private LocalFlowProcess tapFlowProcess( Tap tap ) { Properties defaultProperties = ( (LocalFlowProcess) flowProcess ).getConfig(); Properties tapProperties = step.getPropertiesMap().get( tap ); tapProperties = PropertyUtil.createProperties( tapProperties, defaultProperties ); return new LocalFlowProcess( (LocalFlowProcess) flowProcess, tapProperties ); } }
@Override public FlowProcess getFlowProcess() { return new LocalFlowProcess( FlowSession.NULL, PropertyUtil.createProperties( getProperties(), null ) ); }