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

com.github.swissquote.carnotzet.maven.plugin.ExtensionConfiguration Maven / Gradle / Ivy

There is a newer version: 1.8.8
Show newest version
package com.github.swissquote.carnotzet.maven.plugin;

import java.util.Properties;

import com.github.swissquote.carnotzet.maven.plugin.spi.CarnotzetExtensionsFactory;

import lombok.Data;

/**
 * Maven configuration for initializing {@link com.github.swissquote.carnotzet.core.CarnotzetExtension}
 */
@Data
public class ExtensionConfiguration {
	/**
	 * The class name of the {@link com.github.swissquote.carnotzet.maven.plugin.spi.CarnotzetExtensionsFactory} instance to be configured using
	 * provided properties
	 */
	private String factoryClass;
	/**
	 * Properties to be used for {@link CarnotzetExtensionsFactory} configuration
	 */
	private Properties properties;

	public boolean isFor(Class extFactoryClass) {
		return extFactoryClass.getName().equalsIgnoreCase(factoryClass);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy