All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.fax4j.common.ConfigurationHolder Maven / Gradle / Ivy

package org.fax4j.common;

import java.util.Map;

/**
 * Common interface for configuration holder components.
 * 
 * @author 	Sagie Gur-Ari
 * @version 1.01
 * @since	0.41.7
 */
public interface ConfigurationHolder
{
	/**
	 * Returns the property part.
* Property parts enables to replace the input request key with the part defined * to enable to reuse services with different configuration blocks.
* Property parts will be replaced with the {0} values in the key, * for example org.fax4j.{0}.somekey with part abc will be replaced to org.fax4j.abc.somekey * * @return The property part */ public String getPropertyPart(); /** * Returns the configuration. * * @return The configuration */ public Map getConfiguration(); /** * Returns the value from the component configuration based on the provided * configuration key. * The value will be trimmed.
* If the trimmed configuration value is an empty string, * null will be returned instead. * * @param key * The configuration key * @return The value */ public String getConfigurationValue(String key); /** * Returns the value from the component configuration based on the provided * configuration key. * The value will be trimmed.
* If the trimmed configuration value is an empty string, * null will be returned instead. * * @param key * The configuration key (toString value will be used) * @return The value */ public String getConfigurationValue(Enum key); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy