Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 3c6a950c00efcbfd5419fac6557aaa4bf0dab96b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?xml version="1.0"?>
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure_9_0.dtd">

<Configure id="Server" class="org.eclipse.jetty.server.Server">

  <Array id="serverClasses" type="java.lang.String">
    <Item>-org.eclipse.jetty.continuation.</Item>
    <Item>-org.eclipse.jetty.jndi.</Item>
    <Item>-org.eclipse.jetty.plus.jaas.</Item>
    <Item>-org.eclipse.jetty.websocket.</Item>
    <Item>-org.eclipse.jetty.servlet.DefaultServlet</Item>
    <Item>org.eclipse.jetty.</Item>
    <Item>org.eclipse.foo.</Item>
  </Array>

  <Array id="systemClasses" type="java.lang.String">
    <Item>java.</Item>
    <Item>javax.</Item>
    <Item>org.xml.</Item>
    <Item>org.w3c.</Item>
    <Item>org.apache.commons.logging</Item>
    <Item>org.eclipse.jetty.continuation</Item>
    <Item>org.eclipse.jetty.plus.jaas.</Item>
    <Item>org.eclipse.jetty.websocket</Item>
    <Item>org.eclipse.jetty.servlet.DefaultServlet</Item>
  </Array>

  <Call name="addBean">
    <Arg>
      <New id="DeploymentManager" class="org.eclipse.jetty.deploy.DeploymentManager">
        <Set name="contexts">
          <Ref refid="Contexts" />
        </Set>

        <Ref refid="DeploymentManager">
          <Call name="addLifeCycleBinding">
            <Arg>
              <New class="org.eclipse.jetty.deploy.bindings.GlobalWebappConfigBinding">
                <Set name="jettyXml"><SystemProperty name="jetty.home" />/context-binding-test-1.xml</Set>
              </New>
            </Arg>
          </Call>
       </Ref>

        <!-- Providers of Apps -->
        <Set name="appProviders">
          <Array type="org.eclipse.jetty.deploy.AppProvider">
            <Item>
             <New class="org.eclipse.jetty.deploy.providers.WebAppProvider">
              <Set name="monitoredDirName"><SystemProperty name="jetty.home" />/webapps</Set>
              <Set name="scanInterval">1</Set>
              <Set name="configurationManager">
                <New class="org.eclipse.jetty.deploy.PropertiesConfigurationManager">
                  <Set name="file">
                    <SystemProperty name="jetty.home"/>/xml-configured-jetty.properties
                  </Set>
                </New>
              </Set>
             </New>
            </Item>
          </Array>
        </Set>
      </New>
    </Arg>
  </Call>

</Configure>

Back to the top