001: package com.bm.jndi;
002:
003: import java.util.Hashtable;
004:
005: import javax.naming.Binding;
006: import javax.naming.Context;
007: import javax.naming.Name;
008: import javax.naming.NameClassPair;
009: import javax.naming.NameParser;
010: import javax.naming.NamingEnumeration;
011: import javax.naming.NamingException;
012:
013: /**
014: * Implements all Interface methods with unimplemented exception.
015: * @author Daniel
016: *
017: */
018: public class AbstractContext implements Context {
019:
020: /**
021: * {@inheritDoc}
022: */
023: public Object addToEnvironment(String arg0, Object arg1)
024: throws NamingException {
025: throw new IllegalArgumentException(
026: "This JNDI operation is not implemented by the JNDI provider");
027: }
028:
029: /**
030: * {@inheritDoc}
031: */
032: public void bind(Name arg0, Object arg1) throws NamingException {
033: throw new IllegalArgumentException(
034: "This JNDI operation is not implemented by the JNDI provider");
035: }
036:
037: /**
038: * {@inheritDoc}
039: */
040: public void bind(String arg0, Object arg1) throws NamingException {
041: throw new IllegalArgumentException(
042: "This JNDI operation is not implemented by the JNDI provider");
043: }
044:
045: /**
046: * {@inheritDoc}
047: */
048: public void close() throws NamingException {
049: throw new IllegalArgumentException(
050: "This JNDI operation is not implemented by the JNDI provider");
051: }
052:
053: /**
054: * {@inheritDoc}
055: */
056: public Name composeName(Name arg0, Name arg1)
057: throws NamingException {
058: throw new IllegalArgumentException(
059: "This JNDI operation is not implemented by the JNDI provider");
060: }
061:
062: /**
063: * {@inheritDoc}
064: */
065: public String composeName(String arg0, String arg1)
066: throws NamingException {
067: throw new IllegalArgumentException(
068: "This JNDI operation is not implemented by the JNDI provider");
069: }
070:
071: /**
072: * {@inheritDoc}
073: */
074: public Context createSubcontext(Name arg0) throws NamingException {
075: throw new IllegalArgumentException(
076: "This JNDI operation is not implemented by the JNDI provider");
077: }
078:
079: /**
080: * {@inheritDoc}
081: */
082: public Context createSubcontext(String arg0) throws NamingException {
083: throw new IllegalArgumentException(
084: "This JNDI operation is not implemented by the JNDI provider");
085: }
086:
087: /**
088: * {@inheritDoc}
089: */
090: public void destroySubcontext(Name arg0) throws NamingException {
091: throw new IllegalArgumentException(
092: "This JNDI operation is not implemented by the JNDI provider");
093: }
094:
095: /**
096: * {@inheritDoc}
097: */
098: public void destroySubcontext(String arg0) throws NamingException {
099: throw new IllegalArgumentException(
100: "This JNDI operation is not implemented by the JNDI provider");
101: }
102:
103: /**
104: * {@inheritDoc}
105: */
106: public Hashtable<?, ?> getEnvironment() throws NamingException {
107: throw new IllegalArgumentException(
108: "This JNDI operation is not implemented by the JNDI provider");
109: }
110:
111: /**
112: * {@inheritDoc}
113: */
114: public String getNameInNamespace() throws NamingException {
115: throw new IllegalArgumentException(
116: "This JNDI operation is not implemented by the JNDI provider");
117: }
118:
119: /**
120: * {@inheritDoc}
121: */
122: public NameParser getNameParser(Name arg0) throws NamingException {
123: throw new IllegalArgumentException(
124: "This JNDI operation is not implemented by the JNDI provider");
125: }
126:
127: /**
128: * {@inheritDoc}
129: */
130: public NameParser getNameParser(String arg0) throws NamingException {
131: throw new IllegalArgumentException(
132: "This JNDI operation is not implemented by the JNDI provider");
133: }
134:
135: /**
136: * {@inheritDoc}
137: */
138: public NamingEnumeration<NameClassPair> list(Name arg0)
139: throws NamingException {
140: throw new IllegalArgumentException(
141: "This JNDI operation is not implemented by the JNDI provider");
142: }
143:
144: /**
145: * {@inheritDoc}
146: */
147: public NamingEnumeration<NameClassPair> list(String arg0)
148: throws NamingException {
149: throw new IllegalArgumentException(
150: "This JNDI operation is not implemented by the JNDI provider");
151: }
152:
153: /**
154: * {@inheritDoc}
155: */
156: public NamingEnumeration<Binding> listBindings(Name arg0)
157: throws NamingException {
158: throw new IllegalArgumentException(
159: "This JNDI operation is not implemented by the JNDI provider");
160: }
161:
162: /**
163: * {@inheritDoc}
164: */
165: public NamingEnumeration<Binding> listBindings(String arg0)
166: throws NamingException {
167: throw new IllegalArgumentException(
168: "This JNDI operation is not implemented by the JNDI provider");
169: }
170:
171: /**
172: * {@inheritDoc}
173: */
174: public Object lookup(Name arg0) throws NamingException {
175: throw new IllegalArgumentException(
176: "This JNDI operation is not implemented by the JNDI provider");
177: }
178:
179: /**
180: * {@inheritDoc}
181: */
182: public Object lookup(String arg0) throws NamingException {
183: throw new IllegalArgumentException(
184: "This JNDI operation is not implemented by the JNDI provider");
185: }
186:
187: /**
188: * {@inheritDoc}
189: */
190: public Object lookupLink(Name arg0) throws NamingException {
191: throw new IllegalArgumentException(
192: "This JNDI operation is not implemented by the JNDI provider");
193: }
194:
195: /**
196: * {@inheritDoc}
197: */
198: public Object lookupLink(String arg0) throws NamingException {
199: throw new IllegalArgumentException(
200: "This JNDI operation is not implemented by the JNDI provider");
201: }
202:
203: /**
204: * {@inheritDoc}
205: */
206: public void rebind(Name arg0, Object arg1) throws NamingException {
207: throw new IllegalArgumentException(
208: "This JNDI operation is not implemented by the JNDI provider");
209: }
210:
211: /**
212: * {@inheritDoc}
213: */
214: public void rebind(String arg0, Object arg1) throws NamingException {
215: throw new IllegalArgumentException(
216: "This JNDI operation is not implemented by the JNDI provider");
217: }
218:
219: /**
220: * {@inheritDoc}
221: */
222: public Object removeFromEnvironment(String arg0)
223: throws NamingException {
224: throw new IllegalArgumentException(
225: "This JNDI operation is not implemented by the JNDI provider");
226: }
227:
228: /**
229: * {@inheritDoc}
230: */
231: public void rename(Name arg0, Name arg1) throws NamingException {
232: throw new IllegalArgumentException(
233: "This JNDI operation is not implemented by the JNDI provider");
234: }
235:
236: /**
237: * {@inheritDoc}
238: */
239: public void rename(String arg0, String arg1) throws NamingException {
240: throw new IllegalArgumentException(
241: "This JNDI operation is not implemented by the JNDI provider");
242: }
243:
244: /**
245: * {@inheritDoc}
246: */
247: public void unbind(Name arg0) throws NamingException {
248: throw new IllegalArgumentException(
249: "This JNDI operation is not implemented by the JNDI provider");
250: }
251:
252: /**
253: * {@inheritDoc}
254: */
255: public void unbind(String arg0) throws NamingException {
256: throw new IllegalArgumentException(
257: "This JNDI operation is not implemented by the JNDI provider");
258: }
259:
260: }
|