1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.mortbay.jetty.plus.naming;
17
18
19 import java.util.ArrayList;
20 import java.util.List;
21
22 import javax.naming.Binding;
23 import javax.naming.Context;
24 import javax.naming.InitialContext;
25 import javax.naming.NameNotFoundException;
26 import javax.naming.NamingEnumeration;
27 import javax.naming.NamingException;
28
29 import org.mortbay.log.Log;
30 import org.mortbay.naming.NamingUtil;
31
32
33
34
35
36
37
38 public class EnvEntry extends NamingEntry
39 {
40 private boolean overrideWebXml;
41
42
43 public EnvEntry (Object scope, String jndiName, Object objToBind, boolean overrideWebXml)
44 throws NamingException
45 {
46 super (scope, jndiName, objToBind);
47 this.overrideWebXml = overrideWebXml;
48 }
49
50
51 public EnvEntry (String jndiName, Object objToBind, boolean overrideWebXml)
52 throws NamingException
53 {
54 super(jndiName, objToBind);
55 this.overrideWebXml = overrideWebXml;
56 }
57
58 public EnvEntry (String jndiName, Object objToBind)
59 throws NamingException
60 {
61 this(jndiName, objToBind, false);
62 }
63
64
65 public boolean isOverrideWebXml ()
66 {
67 return this.overrideWebXml;
68 }
69 }