Jump to: navigation, search

Difference between revisions of "Jetty/Feature/Deployment Bindings"

< Jetty‎ | Feature
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{Jetty Feature
 
{{Jetty Feature
 
| introduction =
 
| introduction =
 +
 +
{{Jetty Redirect|http://www.eclipse.org/jetty/documentation/current/configuring-deployment.html}}
 +
 
Jetty provides capability to tap into the application lifecycle of the deployment manager.  This is achieved with deployment bindings.
 
Jetty provides capability to tap into the application lifecycle of the deployment manager.  This is achieved with deployment bindings.
  
 
| body = There are a handful of bindings that exist within the core distribution of jetty.
 
| body = There are a handful of bindings that exist within the core distribution of jetty.
  
{|
+
* StandardDeployer
|-
+
** deploying
! Binding
+
** Standard binding that deals with deploying a webapp
! Target
+
* StandardStarter
|-
+
** starting
| StandardDeployer
+
** Standard binding that deals with starting a webapp
| deploying
+
* StandardStopper
|-
+
** stopping
| StandardStarter
+
** Standard binding that deals with stopping a webapp
| starting
+
* StandardUndeployer
|-
+
** undeploying
| StandardStopper
+
** Standard undeployer that deals with undeploying a webapp
| stopping
+
* DebugBinding
|-
+
** <any specified>
| StandardUndeployer
+
** attaches a binding and prints logging information of a context going through the specified binding target
| undeploying
+
* GlobalWebappConfigBinding
|-
+
** deploying
| DebugBinding
+
** allows the user to override various settings of a webapp's context globally for all contexts
| <any specified>
+
 
|-
+
<code source="xml">
| GlobalWebappConfigBinding
+
        <Call name="addLifeCycleBinding">
| deploying
+
          <Arg>
|-
+
            <New class="org.eclipse.jetty.deploy.bindings.GlobalWebappConfigBinding" >
| OrderedGroupBinding
+
              <Set name="jettyXml">file://<Property name="jetty.home" default="." />/etc/global-webapp-context-config.xml</Set>
| <any specified>
+
            </New>
|}
+
          </Arg>
 +
        </Call>
 +
</code>
 +
 
 +
* OrderedGroupBinding
 +
** <any specified>
 +
** allows the user to specific a specific order for bindings to process in a given binding target
  
 
}}
 
}}

Latest revision as of 15:01, 23 April 2013



Introduction


Jetty provides capability to tap into the application lifecycle of the deployment manager. This is achieved with deployment bindings.

Feature

There are a handful of bindings that exist within the core distribution of jetty.

  • StandardDeployer
    • deploying
    • Standard binding that deals with deploying a webapp
  • StandardStarter
    • starting
    • Standard binding that deals with starting a webapp
  • StandardStopper
    • stopping
    • Standard binding that deals with stopping a webapp
  • StandardUndeployer
    • undeploying
    • Standard undeployer that deals with undeploying a webapp
  • DebugBinding
    • <any specified>
    • attaches a binding and prints logging information of a context going through the specified binding target
  • GlobalWebappConfigBinding
    • deploying
    • allows the user to override various settings of a webapp's context globally for all contexts

       <Call name="addLifeCycleBinding">
         <Arg>
           <New class="org.eclipse.jetty.deploy.bindings.GlobalWebappConfigBinding" >
             <Set name="jettyXml">file://<Property name="jetty.home" default="." />/etc/global-webapp-context-config.xml</Set>
           </New>
         </Arg>
       </Call>

  • OrderedGroupBinding
    • <any specified>
    • allows the user to specific a specific order for bindings to process in a given binding target