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

com.github.kristofa.servicepluginloader.ServicePlugin Maven / Gradle / Ivy

There is a newer version: 0.2
Show newest version
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