KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > petals > jbi > routing > mock > MockRegistry


1 /**
2  * PETALS - PETALS Services Platform.
3  * Copyright (c) 2005 EBM Websourcing, http://www.ebmwebsourcing.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: MockRegistry.java 4:06:09 PM ddesjardins $
20  * -------------------------------------------------------------------------
21  */

22 package org.objectweb.petals.jbi.routing.mock;
23
24 import java.util.List JavaDoc;
25
26 import javax.jbi.servicedesc.ServiceEndpoint;
27 import javax.naming.Context JavaDoc;
28 import javax.xml.namespace.QName JavaDoc;
29
30 import org.objectweb.petals.jbi.registry.AbstractEndpoint;
31 import org.objectweb.petals.jbi.registry.LinkedEndpoint;
32 import org.objectweb.petals.jbi.registry.Registry;
33 import org.objectweb.petals.jbi.registry.RegistryException;
34
35 /**
36  * Mock object of the registry
37  *
38  * @author ddesjardins - eBMWebsourcing
39  */

40 public class MockRegistry implements Registry {
41
42     public void deregisterExternalEndpoint(ServiceEndpoint externalEndpoint)
43         throws RegistryException {
44     }
45
46     public void deregisterInternalEndpoint(AbstractEndpoint endpoint)
47         throws RegistryException {
48     }
49
50     public AbstractEndpoint[] getExternalEndpointsForInterface(
51         QName JavaDoc interfaceName) throws RegistryException {
52         return null;
53     }
54
55     public AbstractEndpoint[] getExternalEndpointsForService(QName JavaDoc serviceName) {
56         return null;
57     }
58
59     public AbstractEndpoint getInternalEndpoint(QName JavaDoc service, String JavaDoc name)
60         throws RegistryException {
61         return null;
62     }
63
64     public AbstractEndpoint[] getInternalEndpointsForInterface(
65         QName JavaDoc interfaceName) throws RegistryException {
66         return null;
67     }
68
69     public AbstractEndpoint[] getInternalEndpointsForService(QName JavaDoc serviceName) {
70         return null;
71     }
72
73     public void registerExternalEndpoint(ServiceEndpoint externalEndpoint)
74         throws RegistryException {
75     }
76
77     public void registerInternalEndpoint(AbstractEndpoint endpoint)
78         throws RegistryException {
79     }
80
81     public void validateEndpoint(AbstractEndpoint endpoint)
82         throws RegistryException {
83     }
84
85     public List JavaDoc<AbstractEndpoint> retrieveNewEndpoints()
86         throws RegistryException {
87         return null;
88     }
89
90     public void registerConnection(LinkedEndpoint linkedEndpoint)
91         throws RegistryException {
92     }
93
94     public AbstractEndpoint getExternalEndpoint(QName JavaDoc service, String JavaDoc name)
95         throws RegistryException {
96         return null;
97     }
98
99     public void deregisterConnection(LinkedEndpoint connection)
100         throws RegistryException {
101     }
102
103     public void cleanNewEndpoints() throws RegistryException {
104     }
105
106     public AbstractEndpoint getInternalEndpoint(QName JavaDoc service, String JavaDoc name, boolean resolveLink) throws RegistryException {
107         return null;
108     }
109
110     public Context JavaDoc getUsersContext() {
111         return null;
112     }
113
114 }
115
Popular Tags