01: /*
02: * Copyright 1999,2004 The Apache Software Foundation.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16:
17: package org.apache.naming.resources;
18:
19: import javax.naming.Name;
20: import javax.naming.NameNotFoundException;
21:
22: /**
23: * Immutable exception to avoid useless object creation by the proxy context.
24: * This should be used only by the proxy context. Actual contexts should return
25: * properly populated exceptions.
26: *
27: * @author <a href="mailto:remm@apache.org">Remy Maucherat</a>
28: * @version $Revision: 1.2 $
29: */
30: public class ImmutableNameNotFoundException extends
31: NameNotFoundException {
32:
33: public void appendRemainingComponent(String name) {
34: }
35:
36: public void appendRemainingName(Name name) {
37: }
38:
39: public void setRemainingName(Name name) {
40: }
41:
42: public void setResolverName(Name name) {
43: }
44:
45: public void setRootCause(Throwable e) {
46: }
47:
48: }
|