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

org.gridkit.vicluster.ViConfigurable Maven / Gradle / Ivy

There is a newer version: 1.0.0-beta
Show newest version
/**
 * Copyright 2012 Alexey Ragozin
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.gridkit.vicluster;

import java.util.Map;

/**
 * @author Alexey Ragozin ([email protected])
 */
public interface ViConfigurable {

	public  X x(ViConfExtender extender);
	
	public void setProp(String propName, String value);
	
	public void setProps(Map props);
	
	/**
	 * SPI communication method.
* Update runtime configuration element. */ public void setConfigElement(String key, Object value); /** * SPI communication method.
* Update runtime configuration elements. */ public void setConfigElements(Map config); public static abstract class Delegate implements ViConfigurable { protected abstract ViConfigurable getConfigurable(); public X x(ViConfExtender extention) { return getConfigurable().x(extention); } public void setProp(String propName, String value) { getConfigurable().setProp(propName, value); } public void setProps(Map props) { getConfigurable().setProps(props); } public void setConfigElement(String key, Object value) { getConfigurable().setConfigElement(key, value); } public void setConfigElements(Map config) { getConfigurable().setConfigElements(config); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy