/** * {@inheritDoc} This implementation stores the passed in {@code BeanHelper} * object in the internal parameters map, but uses a reserved key, so that * it is not used for the initialization of properties of the managed * configuration object. The {@code fetchBeanHelper()} method can be used to * obtain the {@code BeanHelper} instance from a parameters map. */ @Override public BasicBuilderParameters setBeanHelper(final BeanHelper beanHelper) { return setProperty(PROP_BEAN_HELPER, beanHelper); }
/** * {@inheritDoc} This implementation stores the passed in * {@code ConfigurationDecoder} object in the internal parameters map. */ @Override public BasicBuilderParameters setConfigurationDecoder( final ConfigurationDecoder decoder) { return setProperty(PROP_CONFIGURATION_DECODER, decoder); }
/** * {@inheritDoc} The passed in {@code ConfigurationInterpolator} is set * without modifications. */ @Override public BasicBuilderParameters setInterpolator(final ConfigurationInterpolator ci) { return setProperty(PROP_INTERPOLATOR, ci); }
/** * {@inheritDoc} This implementation stores the passed in * {@code ConfigurationInterpolator} object in the internal parameters map. */ @Override public BasicBuilderParameters setParentInterpolator( final ConfigurationInterpolator parent) { return setProperty(PROP_PARENT_INTERPOLATOR, parent); }
/** * {@inheritDoc} This implementation stores the passed in * {@code Synchronizer} object in the internal parameters map. */ @Override public BasicBuilderParameters setSynchronizer(final Synchronizer sync) { return setProperty(PROP_SYNCHRONIZER, sync); }
/** * {@inheritDoc} This implementation stores the passed in * {@code ConversionHandler} object in the internal parameters map. */ @Override public BasicBuilderParameters setConversionHandler(final ConversionHandler handler) { return setProperty(PROP_CONVERSION_HANDLER, handler); }
/** * Sets the <em>logger</em> property. With this property a concrete * {@code Log} object can be set for the configuration. Thus logging * behavior can be controlled. * * @param log the {@code Log} for the configuration produced by this builder * @return a reference to this object for method chaining */ @Override public BasicBuilderParameters setLogger(final ConfigurationLogger log) { return setProperty(PROP_LOGGER, log); }
/** * Sets the value of the <em>listDelimiterHandler</em> property. This * property defines the object responsible for dealing with list delimiter * and escaping characters. Note: * {@link org.apache.commons.configuration2.AbstractConfiguration AbstractConfiguration} * does not allow setting this property to <b>null</b>. If the default * {@code ListDelimiterHandler} is to be used, do not call this method. * * @param handler the {@code ListDelimiterHandler} * @return a reference to this object for method chaining */ @Override public BasicBuilderParameters setListDelimiterHandler( final ListDelimiterHandler handler) { return setProperty(PROP_LIST_DELIMITER_HANDLER, handler); }
/** * Sets the value of the <em>throwExceptionOnMissing</em> property. This * property controls the configuration's behavior if missing properties are * queried: a value of <b>true</b> causes the configuration to throw an * exception, for a value of <b>false</b> it will return <b>null</b> values. * (Note: Methods returning a primitive data type will always throw an * exception if the property is not defined.) * * @param b the value of the property * @return a reference to this object for method chaining */ @Override public BasicBuilderParameters setThrowExceptionOnMissing(final boolean b) { return setProperty(PROP_THROW_EXCEPTION_ON_MISSING, Boolean.valueOf(b)); }
/** * {@inheritDoc} A defensive copy of the passed in collection is created. A * <b>null</b> argument causes all default lookups to be removed from the * internal parameters map. */ @Override public BasicBuilderParameters setDefaultLookups( final Collection<? extends Lookup> lookups) { if (lookups == null) { properties.remove(PROP_DEFAULT_LOOKUPS); return this; } return setProperty(PROP_DEFAULT_LOOKUPS, new ArrayList<>( lookups)); }
/** * {@inheritDoc} A defensive copy of the passed in map is created. A * <b>null</b> argument causes all prefix lookups to be removed from the * internal parameters map. */ @Override public BasicBuilderParameters setPrefixLookups( final Map<String, ? extends Lookup> lookups) { if (lookups == null) { properties.remove(PROP_PREFIX_LOOKUPS); return this; } return setProperty(PROP_PREFIX_LOOKUPS, new HashMap<>(lookups)); }