es.iti.wakamiti.api.imconfig.Configurer Maven / Gradle / Ivy
The newest version!
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
package es.iti.wakamiti.api.imconfig;
/**
* A convenient interface for objects that can apply a configuration to another object.
* The main difference with {@link Configurable} is that, while a `Configurer` is a third
* object that applies a configuration to others, a `Configurable` applies the configuration
* to itself.
* @param The type of the object that can be configured
*/
public interface Configurer {
/**
* Apply the given configuration to the specified object
* @param configurable The object to configure
* @param configuration The configuration that would be applied
*/
void configure (T configurable, Configuration configuration);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy