KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jonas > jaxr > JAXRService


1 /**
2  * JOnAS: Java(TM) Open Application Server
3  * Copyright (C) 1999 Bull S.A.
4  * Contact: jonas-team@objectweb.org
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
19  * USA
20  *
21  * Initial developer(s): Guillaume Sauthier
22  * --------------------------------------------------------------------------
23  * $Id: JAXRService.java,v 1.1 2004/07/29 11:05:21 sauthieg Exp $
24  * --------------------------------------------------------------------------
25  */

26 package org.objectweb.jonas.jaxr;
27
28 import java.util.Properties JavaDoc;
29
30 import org.objectweb.jonas.service.Service;
31 import org.objectweb.jonas.service.ServiceException;
32
33
34 /**
35  * A <code>JAXRService</code> is responsible to bind and manage JAXR Connection bound inside Registry.
36  *
37  * @author Guillaume Sauthier
38  */

39 public interface JAXRService extends Service {
40
41     /**
42      * Creates a new JAXRConnection from a Properties file.
43      * @param props jaxr.properties file
44      * @throws ServiceException if creation fails
45      */

46     void createJAXRConnection(Properties JavaDoc props) throws ServiceException;
47
48     /**
49      * Modify the named JAXRConnection by remove it from Registry and bind the new one.
50      * @param name old JAXRConnection name
51      * @param jaxrc new JAXRConnection instance
52      * @throws ServiceException if remove/add fails
53      */

54     void modifyJAXRConnection(String JavaDoc name, JAXRConnection jaxrc) throws ServiceException;
55
56     /**
57      * Remove the names JAXRConnection from the Registry.
58      * @param name JAXRConnection name to be removed
59      * @throws ServiceException if remove fails.
60      */

61     void removeJAXRConnection(String JavaDoc name) throws ServiceException;
62 }
63
Popular Tags