001: /*
002: * JBoss, Home of Professional Open Source.
003: * Copyright 2006, Red Hat Middleware LLC, and individual contributors
004: * as indicated by the @author tags. See the copyright.txt file in the
005: * distribution for a full listing of individual contributors.
006: *
007: * This is free software; you can redistribute it and/or modify it
008: * under the terms of the GNU Lesser General Public License as
009: * published by the Free Software Foundation; either version 2.1 of
010: * the License, or (at your option) any later version.
011: *
012: * This software is distributed in the hope that it will be useful,
013: * but WITHOUT ANY WARRANTY; without even the implied warranty of
014: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
015: * Lesser General Public License for more details.
016: *
017: * You should have received a copy of the GNU Lesser General Public
018: * License along with this software; if not, write to the Free
019: * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
020: * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
021: */
022: package org.jboss.test.jca.fs;
023:
024: import java.util.Hashtable;
025: import javax.naming.Name;
026: import javax.naming.Context;
027: import javax.naming.NamingEnumeration;
028: import javax.naming.NamingException;
029: import javax.naming.NameParser;
030: import javax.naming.directory.ModificationItem;
031: import javax.naming.directory.SearchControls;
032: import javax.naming.directory.DirContext;
033: import javax.naming.directory.Attributes;
034:
035: import org.apache.log4j.Category;
036:
037: /**
038: *
039: * @author Scott.Stark@jboss.org
040: * @version $Revision: 57211 $
041: */
042: public class FSDirContext implements DirContext {
043: static Category log = Category.getInstance(FSDirContext.class);
044: private FSManagedConnection mc;
045:
046: /** Creates new FSDirContext */
047: public FSDirContext(FSManagedConnection mc) {
048: this .mc = mc;
049: }
050:
051: protected void setManagedConnection(FSManagedConnection mc) {
052: this .mc = mc;
053: }
054:
055: public Attributes getAttributes(Name name, String[] str)
056: throws NamingException {
057: return null;
058: }
059:
060: public void close() throws NamingException {
061: log.debug("close");
062: mc.close();
063: }
064:
065: public NamingEnumeration list(String str) throws NamingException {
066: return null;
067: }
068:
069: public void unbind(Name name) throws NamingException {
070: }
071:
072: public DirContext getSchemaClassDefinition(Name name)
073: throws NamingException {
074: return null;
075: }
076:
077: public DirContext createSubcontext(String str, Attributes attributes)
078: throws NamingException {
079: return null;
080: }
081:
082: public String getNameInNamespace() throws NamingException {
083: return null;
084: }
085:
086: public Object addToEnvironment(String str, Object obj)
087: throws NamingException {
088: return null;
089: }
090:
091: public NamingEnumeration listBindings(Name name)
092: throws NamingException {
093: return null;
094: }
095:
096: public void bind(Name name, Object obj) throws NamingException {
097: }
098:
099: public NamingEnumeration search(String str, Attributes attributes,
100: String[] str2) throws NamingException {
101: return null;
102: }
103:
104: public void modifyAttributes(Name name, int param,
105: Attributes attributes) throws NamingException {
106: }
107:
108: public Hashtable getEnvironment() throws NamingException {
109: return null;
110: }
111:
112: public void bind(String str, Object obj) throws NamingException {
113: }
114:
115: public void rebind(String str, Object obj, Attributes attributes)
116: throws NamingException {
117: }
118:
119: public DirContext getSchema(Name name) throws NamingException {
120: return null;
121: }
122:
123: public DirContext getSchemaClassDefinition(String str)
124: throws NamingException {
125: return null;
126: }
127:
128: public Object lookup(String str) throws NamingException {
129: return null;
130: }
131:
132: public void destroySubcontext(String str) throws NamingException {
133: }
134:
135: public Context createSubcontext(Name name) throws NamingException {
136: return null;
137: }
138:
139: public Object lookupLink(String str) throws NamingException {
140: return null;
141: }
142:
143: public DirContext getSchema(String str) throws NamingException {
144: return null;
145: }
146:
147: public Object lookup(Name name) throws NamingException {
148: return null;
149: }
150:
151: public void destroySubcontext(Name name) throws NamingException {
152: }
153:
154: public NamingEnumeration listBindings(String str)
155: throws NamingException {
156: return null;
157: }
158:
159: public void rebind(String str, Object obj) throws NamingException {
160: }
161:
162: public Object removeFromEnvironment(String str)
163: throws NamingException {
164: return null;
165: }
166:
167: public void bind(String str, Object obj, Attributes attributes)
168: throws NamingException {
169: }
170:
171: public NamingEnumeration search(Name name, Attributes attributes)
172: throws NamingException {
173: return null;
174: }
175:
176: public NameParser getNameParser(String str) throws NamingException {
177: return null;
178: }
179:
180: public void bind(Name name, Object obj, Attributes attributes)
181: throws NamingException {
182: }
183:
184: public Attributes getAttributes(String str) throws NamingException {
185: return null;
186: }
187:
188: public void rename(String str, String str1) throws NamingException {
189: }
190:
191: public void rename(Name name, Name name1) throws NamingException {
192: }
193:
194: public DirContext createSubcontext(Name name, Attributes attributes)
195: throws NamingException {
196: return null;
197: }
198:
199: public void rebind(Name name, Object obj, Attributes attributes)
200: throws NamingException {
201: }
202:
203: public NamingEnumeration list(Name name) throws NamingException {
204: return null;
205: }
206:
207: public Context createSubcontext(String str) throws NamingException {
208: return null;
209: }
210:
211: public void modifyAttributes(String str, int param,
212: Attributes attributes) throws NamingException {
213: }
214:
215: public NamingEnumeration search(String str, Attributes attributes)
216: throws NamingException {
217: return null;
218: }
219:
220: public Name composeName(Name name, Name name1)
221: throws NamingException {
222: return null;
223: }
224:
225: public String composeName(String str, String str1)
226: throws NamingException {
227: return null;
228: }
229:
230: public NamingEnumeration search(Name name, Attributes attributes,
231: String[] str) throws NamingException {
232: return null;
233: }
234:
235: public void rebind(Name name, Object obj) throws NamingException {
236: }
237:
238: public void modifyAttributes(Name name,
239: ModificationItem[] modificationItem) throws NamingException {
240: }
241:
242: public NamingEnumeration search(Name name, String str,
243: SearchControls searchControls) throws NamingException {
244: return null;
245: }
246:
247: public NamingEnumeration search(Name name, String str,
248: Object[] obj, SearchControls searchControls)
249: throws NamingException {
250: return null;
251: }
252:
253: public void unbind(String str) throws NamingException {
254: }
255:
256: public void modifyAttributes(String str,
257: ModificationItem[] modificationItem) throws NamingException {
258: }
259:
260: public Attributes getAttributes(Name name) throws NamingException {
261: return null;
262: }
263:
264: public Object lookupLink(Name name) throws NamingException {
265: return null;
266: }
267:
268: public NameParser getNameParser(Name name) throws NamingException {
269: return null;
270: }
271:
272: public Attributes getAttributes(String str, String[] str1)
273: throws NamingException {
274: return null;
275: }
276:
277: public NamingEnumeration search(String str, String str1,
278: SearchControls searchControls) throws NamingException {
279: return null;
280: }
281:
282: public NamingEnumeration search(String str, String str1,
283: Object[] obj, SearchControls searchControls)
284: throws NamingException {
285: return null;
286: }
287:
288: }
|