KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > petals > service > ServiceBindingController


1 /**
2  * PETALS - PETALS Services Platform.
3  * Copyright (c) 2005 Fossil E-Commerce, http://www.fossilec.com/
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  *
18  * -------------------------------------------------------------------------
19  * $Id: ServiceBindingController.java 74 2006-01-17 17:12:07Z rmarins $
20  * -------------------------------------------------------------------------
21  */

22 package org.objectweb.petals.service;
23
24 /**
25  * This interface define system service bindings controller to other services.
26  *
27  * @version $Revision: 74 $ $Date: 2006-01-17 17:12:07Z $
28  * @since Petals 1.0
29  * @author <a HREF="mailto:rmarins@fossilec.com">Rafael Marins</a>
30  */

31 public interface ServiceBindingController {
32
33     String JavaDoc[] getInterfaces();
34
35     Object JavaDoc lookup(String JavaDoc interfaceName);
36
37     void bind(String JavaDoc clientInterfaceName, Object JavaDoc clientReference)
38             throws NoSuchInterfaceException, IllegalBindingException,
39             IllegalLifeCycleException;
40
41     void unbind(String JavaDoc clientInterfaceName) throws NoSuchInterfaceException,
42             IllegalBindingException, IllegalLifeCycleException;
43
44 }
45
Popular Tags