Top Description Fields Constructors Methods
org.mortbay.jetty.plus.webapp

public Class Configuration

extends AbstractConfiguration
Class Inheritance
Imports
java.util.Random, javax.naming.Context, .InitialContext, .NameNotFoundException, org.mortbay.jetty.plus.naming.EnvEntry, .Link, .NamingEntry, .NamingEntryUtil, .Transaction, org.mortbay.log.Log, org.mortbay.naming.NamingUtil

Configuration

Field Summary

Modifier and TypeField and Description
private Integer
Inherited from org.mortbay.jetty.plus.webapp.AbstractConfiguration:
_callbacks_injections_runAsCollection

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private void
bindEntry(String
name of the resource from web.xml
name
,
Class<T> typeClass)

Bind a resource with the given name from web.xml of the given type with a jndi resource from either the server or the webapp's naming environment.

public void
public void
public void
public void
bindResourceRef(String name, Class<T> typeClass)

Implements abstract org.mortbay.jetty.plus.webapp.AbstractConfiguration.bindResourceRef.

Bind a resource reference.
public void
public void
public void
public void
public void
protected void
public void
parseAnnotations()

Implements abstract org.mortbay.jetty.plus.webapp.AbstractConfiguration.parseAnnotations.

Parse all classes that are mentioned in web.xml (servlets, filters, listeners) for annotations.
protected void
Inherited from org.mortbay.jetty.plus.webapp.AbstractConfiguration:
callPreDestroyCallbacksconfigureinitEnvEntryinitializeinitInjectioninitMessageDestinationRefinitPostConstructinitPreDestroyinitResourceEnvRefinitResourceRefinitWebXmlElementinjectAndCallPostConstructCallbackssetWebAppContext

Field Detail

_keyback to summary
private Integer _key

Constructor Detail

Configurationback to summary
public Configuration() throws ClassNotFoundException

Method Detail

bindEntryback to summary
private void bindEntry(String name, Class<T> typeClass) throws Exception

Bind a resource with the given name from web.xml of the given type with a jndi resource from either the server or the webapp's naming environment. As the servlet spec does not cover the mapping of names in web.xml with names from the execution environment, jetty uses the concept of a Link, which is a subclass of the NamingEntry class. A Link defines a mapping of a name from web.xml with a name from the execution environment (ie either the server or the webapp's naming environment).

Parameters
name:String

name of the resource from web.xml

bindEnvEntryback to summary
public void bindEnvEntry(String name, Object value) throws Exception

Implements abstract org.mortbay.jetty.plus.webapp.AbstractConfiguration.bindEnvEntry.

See Also
org.mortbay.jetty.plus.webapp.AbstractConfiguration#bindEnvEntry(java.lang.String, java.lang.String)
bindMessageDestinationRefback to summary
public void bindMessageDestinationRef(String name, Class<T> typeClass) throws Exception

Implements abstract org.mortbay.jetty.plus.webapp.AbstractConfiguration.bindMessageDestinationRef.

bindResourceEnvRefback to summary
public void bindResourceEnvRef(String name, Class<T> typeClass) throws Exception

Implements abstract org.mortbay.jetty.plus.webapp.AbstractConfiguration.bindResourceEnvRef.

See Also
org.mortbay.jetty.plus.webapp.AbstractConfiguration#bindResourceEnvRef(java.lang.String)
bindResourceRefback to summary
public void bindResourceRef(String name, Class<T> typeClass) throws Exception

Implements abstract org.mortbay.jetty.plus.webapp.AbstractConfiguration.bindResourceRef.

Bind a resource reference. If a resource reference with the same name is in a jetty-env.xml file, it will already have been bound.

See Also
org.mortbay.jetty.plus.webapp.AbstractConfiguration#bindResourceRef(java.lang.String)
bindUserTransactionback to summary
public void bindUserTransaction() throws Exception

Implements abstract org.mortbay.jetty.plus.webapp.AbstractConfiguration.bindUserTransaction.

configureClassLoaderback to summary
public void configureClassLoader() throws Exception

Overrides org.mortbay.jetty.webapp.WebXmlConfiguration.configureClassLoader.

Implements org.mortbay.jetty.webapp.Configuration.configureClassLoader.

Doc from org.mortbay.jetty.webapp.WebXmlConfiguration.configureClassLoader.

Configure ClassPath.

configureDefaultsback to summary
public void configureDefaults() throws Exception

Overrides org.mortbay.jetty.plus.webapp.AbstractConfiguration.configureDefaults.

Implements org.mortbay.jetty.webapp.Configuration.configureDefaults.

Doc from org.mortbay.jetty.webapp.WebXmlConfiguration.configureDefaults.

Process webdefaults.xml

configureWebAppback to summary
public void configureWebApp() throws Exception

Overrides org.mortbay.jetty.plus.webapp.AbstractConfiguration.configureWebApp.

Implements org.mortbay.jetty.webapp.Configuration.configureWebApp.

Doc from org.mortbay.jetty.webapp.WebXmlConfiguration.configureWebApp.

Process web.xml

deconfigureWebAppback to summary
public void deconfigureWebApp() throws Exception

Overrides org.mortbay.jetty.plus.webapp.AbstractConfiguration.deconfigureWebApp.

Implements org.mortbay.jetty.webapp.Configuration.deconfigureWebApp.

Doc from org.mortbay.jetty.webapp.Configuration.deconfigureWebApp.

DeConfigure WebApp. This method is called to undo all configuration done to this webapphandler. This is called to allow the context to work correctly over a stop/start cycle

lockCompEnvback to summary
protected void lockCompEnv() throws Exception
parseAnnotationsback to summary
public void parseAnnotations() throws Exception

Implements abstract org.mortbay.jetty.plus.webapp.AbstractConfiguration.parseAnnotations.

Doc from org.mortbay.jetty.plus.webapp.AbstractConfiguration.parseAnnotations.

Parse all classes that are mentioned in web.xml (servlets, filters, listeners) for annotations.

See Also
org.mortbay.jetty.plus.webapp.AbstractConfiguration#parseAnnotations()
unlockCompEnvback to summary
protected void unlockCompEnv() throws Exception