
com.github.kristofa.servicepluginloader.ServicePlugin Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of service-plugin-loader Show documentation
Show all versions of service-plugin-loader Show documentation
Wrapper around java.util.ServiceLoader
package com.github.kristofa.servicepluginloader;
import java.util.Properties;
import org.apache.commons.lang3.Validate;
/**
* Represents a Service Plugin and its properties.
*
* @author kristof
* @param Plugin type.
*/
public class ServicePlugin {
private final T plugin;
private final Properties properties;
ServicePlugin(final T plugin, final Properties properties) {
Validate.notNull(plugin);
Validate.notNull(properties);
this.plugin = plugin;
this.properties = properties;
}
public T getPlugin() {
return plugin;
}
public Properties getProperties() {
return properties;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy