|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mortbay.jetty.webapp.WebXmlConfiguration
org.mortbay.jetty.plus.webapp.AbstractConfiguration
public abstract class AbstractConfiguration
Configuration
| Field Summary | |
|---|---|
protected LifeCycleCallbackCollection |
_callbacks
|
protected InjectionCollection |
_injections
|
protected RunAsCollection |
_runAsCollection
|
| Fields inherited from class org.mortbay.jetty.webapp.WebXmlConfiguration |
|---|
_constraintMappings, _context, _defaultWelcomeFileList, _errorPages, _filterMappings, _filters, _hasJSP, _jspServletClass, _jspServletName, _listeners, _servletHandler, _servletMappings, _servlets, _version, _welcomeFiles, _xmlParser |
| Constructor Summary | |
|---|---|
AbstractConfiguration()
|
|
| Method Summary | |
|---|---|
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()
Configure Defaults. |
void |
configureWebApp()
Configure WebApp. |
void |
deconfigureWebApp()
DeConfigure WebApp. |
protected void |
initEnvEntry(XmlParser.Node node)
JavaEE 5.4.1.3 |
protected void |
initialize(XmlParser.Node config)
|
protected void |
initInjection(XmlParser.Node node,
String jndiName,
Class valueClass)
Iterate over the <injection-target> entries for a node |
protected void |
initMessageDestinationRef(XmlParser.Node node)
Common Annotations Spec section 2.3: message-destination-ref is for: - javax.jms.Queue - javax.jms.Topic |
protected void |
initPostConstruct(XmlParser.Node node)
Process <post-construct> |
protected void |
initPreDestroy(XmlParser.Node node)
Process <pre-destroy> |
protected void |
initResourceEnvRef(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(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,
XmlParser.Node node)
Handle web.xml element. |
protected void |
injectAndCallPostConstructCallbacks()
|
protected abstract void |
parseAnnotations()
Parse all classes that are mentioned in web.xml (servlets, filters, listeners) for annotations. |
void |
setWebAppContext(WebAppContext context)
Set up a context on which to perform the configuration. |
| Methods inherited from class org.mortbay.jetty.webapp.WebXmlConfiguration |
|---|
configureClassLoader, findWebXml, getJSPServletName, getWebAppContext, initContextParam, initDisplayName, initDistributable, initErrorPage, initFilter, initFilterMapping, initJspConfig, initListener, initLocaleEncodingList, initLoginConfig, initMimeConfig, initSecurityConstraint, initSecurityRole, initServlet, initServletMapping, initSessionConfig, initTagLib, initWelcomeFileList, newListenerInstance, normalizePattern, webXmlParser |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected LifeCycleCallbackCollection _callbacks
protected InjectionCollection _injections
protected RunAsCollection _runAsCollection
| Constructor Detail |
|---|
public AbstractConfiguration()
| Method Detail |
|---|
public abstract void bindEnvEntry(String name,
Object value)
throws Exception
Exception
public abstract void bindResourceRef(String name,
Class type)
throws Exception
Exception
public abstract void bindResourceEnvRef(String name,
Class type)
throws Exception
Exception
public abstract void bindUserTransaction()
throws Exception
Exception
public abstract void bindMessageDestinationRef(String name,
Class type)
throws Exception
Exceptionpublic void setWebAppContext(WebAppContext context)
Configuration
setWebAppContext in interface ConfigurationsetWebAppContext in class WebXmlConfiguration
public void configureDefaults()
throws Exception
Configuration
configureDefaults in interface ConfigurationconfigureDefaults in class WebXmlConfigurationException
public void configureWebApp()
throws Exception
Configuration
configureWebApp in interface ConfigurationconfigureWebApp in class WebXmlConfigurationException
public void deconfigureWebApp()
throws Exception
Configuration
deconfigureWebApp in interface ConfigurationdeconfigureWebApp in class WebXmlConfigurationException
public void configure(String webXml)
throws Exception
configure in class WebXmlConfigurationException
protected void initialize(XmlParser.Node config)
throws ClassNotFoundException,
UnavailableException
initialize in class WebXmlConfigurationClassNotFoundException
UnavailableException
protected void initWebXmlElement(String element,
XmlParser.Node node)
throws Exception
WebXmlConfiguration
initWebXmlElement in class WebXmlConfigurationelement - The element namenode - The node containing the element.
Exception
protected void initEnvEntry(XmlParser.Node node)
throws Exception
node -
Exception
protected void initResourceRef(XmlParser.Node node)
throws Exception
node -
Exception
protected void initResourceEnvRef(XmlParser.Node node)
throws Exception
node -
Exception
protected void initMessageDestinationRef(XmlParser.Node node)
throws Exception
node -
Exceptionprotected void initPostConstruct(XmlParser.Node node)
node - protected void initPreDestroy(XmlParser.Node node)
node -
protected void initInjection(XmlParser.Node node,
String jndiName,
Class valueClass)
node - jndiName - valueClass -
protected abstract void parseAnnotations()
throws Exception
Exception
protected void injectAndCallPostConstructCallbacks()
throws Exception
Exception
protected void callPreDestroyCallbacks()
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||