From: Robert L. <rle...@us...> - 2007-03-20 14:59:39
|
Update of /cvsroot/ccmtools/java-environment/src/Components In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv3744/src/Components Added Files: ComponentDelegator.java Log Message: component adapter now uses ComponentDelegator --- NEW FILE: ComponentDelegator.java --- /* * Created on Mar 20, 2007 * * R&D Salomon Automation (http://www.salomon.at) * * Robert Lechner (rob...@sa...) * * $Id: ComponentDelegator.java,v 1.1 2007/03/20 14:06:13 rlechner Exp $ */ package Components; /** * If the implementation class of the component implements this interface, the local component * adapter delegates to it. */ public interface ComponentDelegator { /** * provides a facet * * @param name name of the facet * @return facet adapter (or null if the facet is unknown) */ Object provide( String name ); /** * connect a facet into a receptacle * * @param name name of the receptacle * @param connection the facet * @return cookie for multiple receptacles; null for single receptacles */ Cookie connect( String name, Object connection ) throws InvalidName, InvalidConnection, AlreadyConnected, ExceededConnectionLimit; /** * disconnects from a receptacle * * @param name name of the receptacle * @param ck cookie for multiple receptacles; null for single receptacles */ void disconnect( String name, Cookie ck ) throws InvalidName, InvalidConnection, CookieRequired, NoConnection; } |