KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > carol > jndi > ns > DummyRegistry


1 /**
2  * Copyright (C) 2002,2004 - INRIA (www.inria.fr)
3  *
4  * CAROL: Common Architecture for RMI ObjectWeb Layer
5  *
6  * This library is developed inside the ObjectWeb Consortium,
7  * http://www.objectweb.org
8  *
9  * This library is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU Lesser General Public
11  * License as published by the Free Software Foundation; either
12  * version 2.1 of the License, or any later version.
13  *
14  * This library is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  * Lesser General Public License for more details.
18  *
19  * You should have received a copy of the GNU Lesser General Public
20  * License along with this library; if not, write to the Free Software
21  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
22  * USA
23  *
24  * --------------------------------------------------------------------------
25  * $Id: DummyRegistry.java,v 1.1 2005/03/10 12:21:46 benoitf Exp $
26  * --------------------------------------------------------------------------
27  */

28 package org.objectweb.carol.jndi.ns;
29
30 /**
31  * Class <code> DummyRegistry </code> is a fake registry service
32  * @author Guillaume Riviere
33  * @author Florent Benoit (Refactoring)
34  */

35 public class DummyRegistry extends AbsRegistry implements NameService {
36
37     /**
38      * start Method, Start a new NameService or do nothing if the name service
39      * is all ready start
40      * @throws NameServiceException if a problem occure
41      */

42     public void start() throws NameServiceException {
43         // do nothing
44
}
45
46     /**
47      * stop Method, Stop a NameService or do nothing if the name service is all
48      * ready stop
49      * @throws NameServiceException if a problem occure
50      */

51     public void stop() throws NameServiceException {
52         // do nothing
53
}
54
55 }
Popular Tags