Contact the core Jetty developers at www.webtide.com
private support for your internal/customer projects ... custom extensions and distributions ... versioned snapshots for indefinite support ... scalability guidance for your apps and Ajax/Comet projects ... development services from 1 day to full product delivery
DOCUMENTATION: Jetty 6 - this wiki. Jetty 7 - at Eclipse. Jetty8 - at Eclipse. Jetty 9 - at Eclipse.
Skip to end of metadata
Go to start of metadata
You are viewing an old version of this page. View the current version. Compare with Current ·  View Page History

IOC = inversion of control
DI = dependency injection

Jetty.xml IOC/DI has long been available even before spring sprung (smile) (springframework)
Anything you can do programmatically can be done on jetty.xml.

The entire functionality is covered by two classes:
1. org.mortbay.xml.XmlConfiguration
2. org.mortbay.xml.XmlParser

Attributes

id

This simply means that you want to reference an object for later use.
Jetty basically persists the object in a java.util.HashMap<String,Object>

Most common use cases:

class

For specifying the complete className to use.

Used in two tags:

name

This is generally used to specify the name of the property/method.
Used on the ff tags:
1. #Set
2. #Get
3. #Call
4. #SystemProperty

type

Used only in one tag:
1. #Array

default

Used only in one tag:

Tags

Configuration

New

Set

Get

Call

Arg

SystemProperty

Array

Item


Used only in conjuction with #Array

Labels
  • None
Contact the core Jetty developers at www.webtide.com
private support for your internal/customer projects ... custom extensions and distributions ... versioned snapshots for indefinite support ... scalability guidance for your apps and Ajax/Comet projects ... development services from 1 day to full product delivery