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 public EnvEntry (Object scope, String jndiName, Object objToBind)
51 throws NamingException
52 {
53 this (scope, jndiName, objToBind, false);
54 }
55
56 public EnvEntry (String jndiName, Object objToBind)
57 throws NamingException
58 {
59 this(jndiName, objToBind, false);
60 }
61
62 public EnvEntry (String jndiName, Object objToBind, boolean overrideWebXml)
63 throws NamingException
64 {
65 super(jndiName, objToBind);
66 this.overrideWebXml = overrideWebXml;
67 }
68
69
70 public boolean isOverrideWebXml ()
71 {
72 return this.overrideWebXml;
73 }
74 }