public abstract class AbstractConfiguration
extends org.mortbay.jetty.webapp.WebXmlConfiguration
| Modifier and Type | Field and Description |
|---|---|
protected LifeCycleCallbackCollection |
_callbacks |
protected InjectionCollection |
_injections |
protected RunAsCollection |
_runAsCollection |
_constraintMappings, _context, _defaultWelcomeFileList, _errorPages, _filterMappings, _filters, _hasJSP, _jspServletClass, _jspServletName, _listeners, _servletHandler, _servletMappings, _servlets, _version, _welcomeFiles, _xmlParser| Constructor and Description |
|---|
AbstractConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
bindEnvEntry(String name,
Object value) |
abstract void |
bindMessageDestinationRef(String name,
Class type) |
abstract void |
bindResourceEnvRef(String name,
Class type) |
abstract void |
bindResourceRef(String name,
Class type) |
abstract void |
bindUserTransaction() |
protected void |
callPreDestroyCallbacks() |
void |
configure(String webXml) |
void |
configureDefaults() |
void |
configureWebApp() |
void |
deconfigureWebApp() |
protected void |
initEnvEntry(org.mortbay.xml.XmlParser.Node node)
JavaEE 5.4.1.3
|
protected void |
initialize(org.mortbay.xml.XmlParser.Node config) |
protected void |
initInjection(org.mortbay.xml.XmlParser.Node node,
String jndiName,
Class valueClass)
Iterate over the <injection-target> entries for a node
|
protected void |
initMessageDestinationRef(org.mortbay.xml.XmlParser.Node node)
Common Annotations Spec section 2.3:
message-destination-ref is for:
- javax.jms.Queue
- javax.jms.Topic
|
protected void |
initPostConstruct(org.mortbay.xml.XmlParser.Node node)
Process <post-construct>
|
protected void |
initPreDestroy(org.mortbay.xml.XmlParser.Node node)
Process <pre-destroy>
|
protected void |
initResourceEnvRef(org.mortbay.xml.XmlParser.Node node)
Common Annotations Spec section 2.3:
resource-env-ref is for:
- javax.transaction.UserTransaction
- javax.resource.cci.InteractionSpec
- anything else that is not a connection factory
|
protected void |
initResourceRef(org.mortbay.xml.XmlParser.Node node)
Common Annotations Spec section 2.3:
resource-ref is for:
- javax.sql.DataSource
- javax.jms.ConnectionFactory
- javax.jms.QueueConnectionFactory
- javax.jms.TopicConnectionFactory
- javax.mail.Session
- java.net.URL
- javax.resource.cci.ConnectionFactory
- org.omg.CORBA_2_3.ORB
- any other connection factory defined by a resource adapter
|
protected void |
initWebXmlElement(String element,
org.mortbay.xml.XmlParser.Node node) |
protected void |
injectAndCallPostConstructCallbacks() |
protected abstract void |
parseAnnotations()
Parse all classes that are mentioned in web.xml (servlets, filters, listeners)
for annotations.
|
void |
setWebAppContext(org.mortbay.jetty.webapp.WebAppContext context) |
configureClassLoader, findWebXml, getJSPServletName, getWebAppContext, initContextParam, initDisplayName, initDistributable, initErrorPage, initFilter, initFilterMapping, initJspConfig, initListener, initLocaleEncodingList, initLoginConfig, initMimeConfig, initSecurityConstraint, initSecurityRole, initServlet, initServletMapping, initSessionConfig, initTagLib, initWelcomeFileList, newListenerInstance, normalizePattern, webXmlParserprotected LifeCycleCallbackCollection _callbacks
protected InjectionCollection _injections
protected RunAsCollection _runAsCollection
public abstract void bindEnvEntry(String name, Object value) throws Exception
Exceptionpublic abstract void bindResourceRef(String name, Class type) throws Exception
Exceptionpublic abstract void bindResourceEnvRef(String name, Class type) throws Exception
Exceptionpublic abstract void bindMessageDestinationRef(String name, Class type) throws Exception
Exceptionpublic void setWebAppContext(org.mortbay.jetty.webapp.WebAppContext context)
setWebAppContext in interface org.mortbay.jetty.webapp.ConfigurationsetWebAppContext in class org.mortbay.jetty.webapp.WebXmlConfigurationpublic void configureDefaults()
throws Exception
configureDefaults in interface org.mortbay.jetty.webapp.ConfigurationconfigureDefaults in class org.mortbay.jetty.webapp.WebXmlConfigurationExceptionpublic void configureWebApp()
throws Exception
configureWebApp in interface org.mortbay.jetty.webapp.ConfigurationconfigureWebApp in class org.mortbay.jetty.webapp.WebXmlConfigurationExceptionpublic void deconfigureWebApp()
throws Exception
deconfigureWebApp in interface org.mortbay.jetty.webapp.ConfigurationdeconfigureWebApp in class org.mortbay.jetty.webapp.WebXmlConfigurationExceptionpublic void configure(String webXml) throws Exception
configure in class org.mortbay.jetty.webapp.WebXmlConfigurationExceptionprotected void initialize(org.mortbay.xml.XmlParser.Node config)
throws ClassNotFoundException,
UnavailableException
initialize in class org.mortbay.jetty.webapp.WebXmlConfigurationClassNotFoundExceptionUnavailableExceptionprotected void initWebXmlElement(String element, org.mortbay.xml.XmlParser.Node node) throws Exception
initWebXmlElement in class org.mortbay.jetty.webapp.WebXmlConfigurationExceptionprotected void initEnvEntry(org.mortbay.xml.XmlParser.Node node)
throws Exception
node - Exceptionprotected void initResourceRef(org.mortbay.xml.XmlParser.Node node)
throws Exception
node - Exceptionprotected void initResourceEnvRef(org.mortbay.xml.XmlParser.Node node)
throws Exception
node - Exceptionprotected void initMessageDestinationRef(org.mortbay.xml.XmlParser.Node node)
throws Exception
node - Exceptionprotected void initPostConstruct(org.mortbay.xml.XmlParser.Node node)
node - protected void initPreDestroy(org.mortbay.xml.XmlParser.Node node)
node - protected void initInjection(org.mortbay.xml.XmlParser.Node node,
String jndiName,
Class valueClass)
node - jndiName - valueClass - protected abstract void parseAnnotations()
throws Exception
Exceptionprotected void injectAndCallPostConstructCallbacks()
throws Exception
ExceptionCopyright © 2009 Mortbay Consulting Pty. Ltd. All Rights Reserved.