KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > ejb3 > naming > BrainlessContext


1 /*
2 * JBoss, Home of Professional Open Source
3 * Copyright 2005, JBoss Inc., and individual contributors as indicated
4 * by the @authors tag. See the copyright.txt in the distribution for a
5 * full listing of individual contributors.
6 *
7 * This is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU Lesser General Public License as
9 * published by the Free Software Foundation; either version 2.1 of
10 * the License, or (at your option) any later version.
11 *
12 * This software is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this software; if not, write to the Free
19 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
21 */

22 package org.jboss.ejb3.naming;
23
24 import javax.naming.*;
25 import java.util.Hashtable JavaDoc;
26
27 /**
28  * A naming context which can't do anything.
29  *
30  * @author carlo
31  */

32 public class BrainlessContext implements Context
33 {
34    public BrainlessContext()
35    {
36       super();
37    }
38
39    public Object JavaDoc lookup(Name name) throws NamingException
40    {
41       throw new OperationNotSupportedException();
42    }
43
44    public Object JavaDoc lookup(String JavaDoc name) throws NamingException
45    {
46       throw new OperationNotSupportedException();
47    }
48
49    public void bind(Name name, Object JavaDoc obj) throws NamingException
50    {
51       throw new OperationNotSupportedException();
52    }
53
54    public void bind(String JavaDoc name, Object JavaDoc obj) throws NamingException
55    {
56       throw new OperationNotSupportedException();
57    }
58
59    public void rebind(Name name, Object JavaDoc obj) throws NamingException
60    {
61       throw new OperationNotSupportedException();
62    }
63
64    public void rebind(String JavaDoc name, Object JavaDoc obj) throws NamingException
65    {
66       throw new OperationNotSupportedException();
67    }
68
69    public void unbind(Name name) throws NamingException
70    {
71       throw new OperationNotSupportedException();
72    }
73
74    public void unbind(String JavaDoc name) throws NamingException
75    {
76       throw new OperationNotSupportedException();
77    }
78
79    public void rename(Name oldName, Name newName) throws NamingException
80    {
81       throw new OperationNotSupportedException();
82    }
83
84    public void rename(String JavaDoc oldName, String JavaDoc newName) throws NamingException
85    {
86       throw new OperationNotSupportedException();
87    }
88
89    public NamingEnumeration<NameClassPair> list(Name name) throws NamingException
90    {
91       throw new OperationNotSupportedException();
92    }
93
94    public NamingEnumeration<NameClassPair> list(String JavaDoc name) throws NamingException
95    {
96       throw new OperationNotSupportedException();
97    }
98
99    public NamingEnumeration<Binding> listBindings(Name name) throws NamingException
100    {
101       throw new OperationNotSupportedException();
102    }
103
104    public NamingEnumeration<Binding> listBindings(String JavaDoc name) throws NamingException
105    {
106       throw new OperationNotSupportedException();
107    }
108
109    public void destroySubcontext(Name name) throws NamingException
110    {
111       throw new OperationNotSupportedException();
112    }
113
114    public void destroySubcontext(String JavaDoc name) throws NamingException
115    {
116       throw new OperationNotSupportedException();
117    }
118
119    public Context createSubcontext(Name name) throws NamingException
120    {
121       throw new OperationNotSupportedException();
122    }
123
124    public Context createSubcontext(String JavaDoc name) throws NamingException
125    {
126       throw new OperationNotSupportedException();
127    }
128
129    public Object JavaDoc lookupLink(Name name) throws NamingException
130    {
131       throw new OperationNotSupportedException();
132    }
133
134    public Object JavaDoc lookupLink(String JavaDoc name) throws NamingException
135    {
136       throw new OperationNotSupportedException();
137    }
138
139    public NameParser getNameParser(Name name) throws NamingException
140    {
141       throw new OperationNotSupportedException();
142    }
143
144    public NameParser getNameParser(String JavaDoc name) throws NamingException
145    {
146       throw new OperationNotSupportedException();
147    }
148
149    public Name composeName(Name name, Name prefix) throws NamingException
150    {
151       throw new OperationNotSupportedException();
152    }
153
154    public String JavaDoc composeName(String JavaDoc name, String JavaDoc prefix) throws NamingException
155    {
156       throw new OperationNotSupportedException();
157    }
158
159    public Object JavaDoc addToEnvironment(String JavaDoc propName, Object JavaDoc propVal) throws NamingException
160    {
161       throw new OperationNotSupportedException();
162    }
163
164    public Object JavaDoc removeFromEnvironment(String JavaDoc propName) throws NamingException
165    {
166       throw new OperationNotSupportedException();
167    }
168
169    public Hashtable JavaDoc<?, ?> getEnvironment() throws NamingException
170    {
171       throw new OperationNotSupportedException();
172    }
173
174    public void close() throws NamingException
175    {
176       throw new OperationNotSupportedException();
177    }
178
179    public String JavaDoc getNameInNamespace() throws NamingException
180    {
181       throw new OperationNotSupportedException();
182    }
183 }
184
Popular Tags