
it.unitn.disi.common.components.IConfigurable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of s-match Show documentation
Show all versions of s-match Show documentation
A version of S-Match semantic matching framework for Open Data
The newest version!
package it.unitn.disi.common.components;
import java.util.Properties;
/**
* Represents a component that supports a configuration.
*
* @author Aliaksandr Autayeu
*/
public interface IConfigurable {
/**
* Sets component configuration properties. The component might check for properties change and
* reconfigure or reload subcomponents.
*
* @param newProperties a new configuration
* @return true if properties have been changed
* @throws ConfigurableException ConfigurableException
*/
boolean setProperties(Properties newProperties) throws ConfigurableException;
/**
* Sets component configuration by reading it from a file.
*
* @param fileName .properties file name
* @return true if properties have been changed
* @throws ConfigurableException ConfigurableException
*/
boolean setProperties(String fileName) throws ConfigurableException;
Properties getProperties();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy