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

org.metricssampler.service.Extension Maven / Gradle / Ivy

The newest version!
package org.metricssampler.service;

import org.metricssampler.config.loader.XBeanPostProcessor;

import java.util.Collection;
import java.util.Collections;

/**
 * SPI entry point for extensions
 */
public interface Extension {
	/**
	 * @return the name of the extension
	 */
	String getName();
	
	/**
	 * Called by the application bootstrapper after loading the extension.
	 */
	void initialize();
	
	/**
	 * @return list of java beans that can be used with XStream to deserialize the configuration
	 */
	Collection> getXBeans();

	default Collection getXBeanPostProcessors() {
		return Collections.emptyList();
	}

	/**
	 * @return a factory for components introduced by this extension.
	 */
	LocalObjectFactory getObjectFactory();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy