- In code. See the examples in the org.mortbay.jetty.example package.
- With jetty xml|jetty.xml] - dependency injection style XML format.
- With your dependency injection framework of choice: Spring or XBean
- Deployers: WebAppDeployer, ContextDeployer
The implementation of Jetty follows some fairly standard patterns. Most abstract concepts such as Connector, Handler and Buffer are captured by interfaces. Generic handling for those interfaces is then provided in an Abstract implementation such as AbstractConnector, AbstractHandler and AbstractBuffer.