001: /*
002: * JFox - The most lightweight Java EE Application Server!
003: * more details please visit http://www.huihoo.org/jfox or http://www.jfox.org.cn.
004: *
005: * JFox is licenced and re-distributable under GNU LGPL.
006: */
007: package org.jfox.ejb3.naming;
008:
009: import java.util.Hashtable;
010: import javax.naming.Binding;
011: import javax.naming.Context;
012: import javax.naming.Name;
013: import javax.naming.NameClassPair;
014: import javax.naming.NameParser;
015: import javax.naming.NamingEnumeration;
016: import javax.naming.NamingException;
017:
018: /**
019: * Context Adapter, throw UnsupportedOperationException very method
020: *
021: * @author <a href="mailto:jfox.young@gmail.com">Young Yang</a>
022: */
023:
024: public abstract class ContextAdapter implements Context {
025:
026: public void bind(String name, Object obj) throws NamingException {
027: throw new UnsupportedOperationException("bind");
028: }
029:
030: public void rebind(String name, Object obj) throws NamingException {
031: throw new UnsupportedOperationException("rebind");
032: }
033:
034: public void unbind(String name) throws NamingException {
035: throw new UnsupportedOperationException("unbind");
036: }
037:
038: public Object lookup(String name) throws NamingException {
039: throw new UnsupportedOperationException("lookup");
040: }
041:
042: public Object addToEnvironment(String propName, Object propVal)
043: throws NamingException {
044: throw new UnsupportedOperationException("addToEnvironment");
045: }
046:
047: public Object removeFromEnvironment(String propName)
048: throws NamingException {
049: throw new UnsupportedOperationException("removeFromEnvironment");
050: }
051:
052: public Hashtable<?, ?> getEnvironment() throws NamingException {
053: throw new UnsupportedOperationException("getEnvironment");
054: }
055:
056: public void bind(Name name, Object obj) throws NamingException {
057: throw new UnsupportedOperationException("bind");
058: }
059:
060: public Name composeName(Name name, Name prefix)
061: throws NamingException {
062: throw new UnsupportedOperationException("composeName");
063: }
064:
065: public String composeName(String name, String prefix)
066: throws NamingException {
067: throw new UnsupportedOperationException("composeName");
068: }
069:
070: public Context createSubcontext(Name name) throws NamingException {
071: throw new UnsupportedOperationException("createSubcontext");
072: }
073:
074: public Context createSubcontext(String name) throws NamingException {
075: throw new UnsupportedOperationException("createSubcontext");
076: }
077:
078: public void destroySubcontext(Name name) throws NamingException {
079: throw new UnsupportedOperationException("destroySubcontext");
080: }
081:
082: public void destroySubcontext(String name) throws NamingException {
083: throw new UnsupportedOperationException("destroySubcontext");
084: }
085:
086: public String getNameInNamespace() throws NamingException {
087: throw new UnsupportedOperationException("getNameInNamespace");
088: }
089:
090: public NameParser getNameParser(Name name) throws NamingException {
091: throw new UnsupportedOperationException("getNameParser");
092: }
093:
094: public NameParser getNameParser(String name) throws NamingException {
095: throw new UnsupportedOperationException("getNameParser");
096: }
097:
098: public NamingEnumeration<NameClassPair> list(Name name)
099: throws NamingException {
100: throw new UnsupportedOperationException("list");
101: }
102:
103: public NamingEnumeration<NameClassPair> list(String name)
104: throws NamingException {
105: throw new UnsupportedOperationException("list");
106: }
107:
108: public NamingEnumeration<Binding> listBindings(Name name)
109: throws NamingException {
110: throw new UnsupportedOperationException("listBindings");
111: }
112:
113: public NamingEnumeration<Binding> listBindings(String name)
114: throws NamingException {
115: throw new UnsupportedOperationException("listBindings");
116: }
117:
118: public Object lookup(Name name) throws NamingException {
119: throw new UnsupportedOperationException("lookup");
120: }
121:
122: public Object lookupLink(Name name) throws NamingException {
123: throw new UnsupportedOperationException("lookupLink");
124: }
125:
126: public Object lookupLink(String name) throws NamingException {
127: throw new UnsupportedOperationException("lookupLink");
128: }
129:
130: public void rebind(Name name, Object obj) throws NamingException {
131: throw new UnsupportedOperationException("rebind");
132: }
133:
134: public void rename(Name oldName, Name newName)
135: throws NamingException {
136: throw new UnsupportedOperationException("rename");
137: }
138:
139: public void rename(String oldName, String newName)
140: throws NamingException {
141: throw new UnsupportedOperationException("rename");
142: }
143:
144: public void unbind(Name name) throws NamingException {
145: throw new UnsupportedOperationException("unbind");
146: }
147:
148: public void close() throws NamingException {
149: // do nothing
150: }
151:
152: }
|