org.infinispan.commons.configuration.Builder Maven / Gradle / Ivy
package org.infinispan.commons.configuration;
/**
* Builder. Validates and constructs a configuration bean
*
* @author Tristan Tarrant
* @since 5.2
*/
public interface Builder {
/**
* Validate the data in this builder before building the configuration bean
*/
void validate();
/**
* Create the configuration bean
*
* @return
*/
T create();
/**
* Reads the configuration from an already created configuration bean into this builder.
* Returns an appropriate builder to allow fluent configuration
*
*
* @param template the configuration from which to "clone" this config if needed.
*
*/
Builder> read(T template);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy