1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.eclipse.jetty.plus.jndi;
20
21
22 import javax.naming.NamingException;
23
24
25
26
27
28 public class EnvEntry extends NamingEntry
29 {
30 private boolean overrideWebXml;
31
32 public EnvEntry (Object scope, String jndiName, Object objToBind, boolean overrideWebXml)
33 throws NamingException
34 {
35 super (scope, jndiName);
36 save(objToBind);
37 this.overrideWebXml = overrideWebXml;
38 }
39
40
41 public EnvEntry (String jndiName, Object objToBind, boolean overrideWebXml)
42 throws NamingException
43 {
44 super(jndiName);
45 save(objToBind);
46 this.overrideWebXml = overrideWebXml;
47 }
48
49 public EnvEntry (String jndiName, Object objToBind)
50 throws NamingException
51 {
52 this(jndiName, objToBind, false);
53 }
54
55 public boolean isOverrideWebXml ()
56 {
57 return this.overrideWebXml;
58 }
59 }