de.tsl2.nano.bean.def.IPluggable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tsl2.nano.descriptor Show documentation
Show all versions of tsl2.nano.descriptor Show documentation
TSL2 Framework Descriptor (currency-handling, generic formatter, descriptors for beans, collections, actions and values)
/*
* File: $HeadURL$
* Id : $Id$
*
* created by: Tom
* created on: 23.10.2014
*
* Copyright: (c) Thomas Schneider 2014, all rights reserved
*/
package de.tsl2.nano.bean.def;
import java.util.Collection;
import de.tsl2.nano.bean.IConnector;
/**
* to be extendable...
*
* The pluggable implementation is like a parent for the connectors. The pluggable itself should be the CONNECTOREND.
*
* @author Tom
* @version $Revision$
*/
public interface IPluggable {
/**
* getPlugins
*
* @return all available connectors to this instance
*/
Collection> getPlugins();
/**
* the given plugin will be connected to *this*, calling plugin.connect(this).
*
* @param plugin The plugin to add.
*/
void addPlugin(IConnector plugin);
/**
* the given plugin will be disconnected from *this*, calling plugin.disconnect(this).
*
* @param plugin to remove
* @return true, if plugin was removed
*/
boolean removePlugin(IConnector plugin);
}