Top Inners Fields Constructors Methods
org.eclipse.jetty.ee10.webapp

public Class AbstractConfiguration

extends Object
implements Configuration
Class Inheritance
All Implemented Interfaces
org.eclipse.jetty.ee10.webapp.Configuration
Known Direct Subclasses
org.eclipse.jetty.ee10.webapp.FragmentConfiguration, org.eclipse.jetty.ee10.webapp.JaasConfiguration, org.eclipse.jetty.ee10.webapp.JettyWebXmlConfiguration, org.eclipse.jetty.ee10.webapp.JmxConfiguration, org.eclipse.jetty.ee10.webapp.JndiConfiguration, org.eclipse.jetty.ee10.webapp.JspConfiguration, org.eclipse.jetty.ee10.webapp.MetaInfConfiguration, org.eclipse.jetty.ee10.webapp.ServletsConfiguration, org.eclipse.jetty.ee10.webapp.WebAppConfiguration, org.eclipse.jetty.ee10.webapp.WebInfConfiguration, org.eclipse.jetty.ee10.webapp.WebXmlConfiguration, org.eclipse.jetty.ee10.webapp.JaspiConfiguration
Imports
java.util.ArrayList, .Arrays, .Collection, .Collections, .List

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
private final List<String>
private final List<String>
private final boolean
private final ClassMatcher
private final ClassMatcher

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public boolean
public void
configure(WebAppContext
The context to configure
context
)

Implements org.eclipse.jetty.ee10.webapp.Configuration.configure.

Configure WebApp.
public void
deconfigure(WebAppContext
The context to configure
context
)

Implements org.eclipse.jetty.ee10.webapp.Configuration.deconfigure.

DeConfigure WebApp.
public void
destroy(WebAppContext
The context to configure
context
)

Implements org.eclipse.jetty.ee10.webapp.Configuration.destroy.

Destroy WebApp.
public Collection<String>
getDependencies()

Overrides default org.eclipse.jetty.ee10.webapp.Configuration.getDependencies.

Get known Configuration Dependencies.
public Collection<String>
getDependents()

Overrides default org.eclipse.jetty.ee10.webapp.Configuration.getDependents.

Get known Configuration Dependents.
public ClassMatcher
getServerClasses()

Overrides default org.eclipse.jetty.ee10.webapp.Configuration.getServerClasses.

Get the system classes associated with this Configuration.
public ClassMatcher
getSystemClasses()

Overrides default org.eclipse.jetty.ee10.webapp.Configuration.getSystemClasses.

Get the system classes associated with this Configuration.
public boolean
public void
postConfigure(WebAppContext
The context to configure
context
)

Implements org.eclipse.jetty.ee10.webapp.Configuration.postConfigure.

Clear down after configuration.
public void
preConfigure(WebAppContext
The context to configure
context
)

Implements org.eclipse.jetty.ee10.webapp.Configuration.preConfigure.

Set up for configuration.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_afterback to summary
private final List<String> _after
_beforeback to summary
private final List<String> _before
_enabledByDefaultback to summary
private final boolean _enabledByDefault
_serverback to summary
private final ClassMatcher _server
_systemback to summary
private final ClassMatcher _system

Constructor Detail

AbstractConfigurationback to summary
protected AbstractConfiguration(AbstractConfiguration.Builder builder)

Method Detail

abortback to summary
public boolean abort(WebAppContext context)

Implements org.eclipse.jetty.ee10.webapp.Configuration.abort.

Returns:boolean

Doc from org.eclipse.jetty.ee10.webapp.Configuration.abort.

true if configuration should be aborted

Annotations
@Override
configureback to summary
public void configure(WebAppContext context) throws Exception

Implements org.eclipse.jetty.ee10.webapp.Configuration.configure.

Doc from org.eclipse.jetty.ee10.webapp.Configuration.configure.

Configure WebApp.

Typically this step applies the discovered configuration resources to either the WebAppContext or the associated MetaData.

Parameters
context:WebAppContext

The context to configure

Annotations
@Override
Exceptions
Exception:
if unable to configure
deconfigureback to summary
public void deconfigure(WebAppContext context) throws Exception

Implements org.eclipse.jetty.ee10.webapp.Configuration.deconfigure.

Doc from org.eclipse.jetty.ee10.webapp.Configuration.deconfigure.

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

Parameters
context:WebAppContext

The context to configure

Annotations
@Override
Exceptions
Exception:
if unable to deconfigure
destroyback to summary
public void destroy(WebAppContext context) throws Exception

Implements org.eclipse.jetty.ee10.webapp.Configuration.destroy.

Doc from org.eclipse.jetty.ee10.webapp.Configuration.destroy.

Destroy WebApp. This method is called to destroy a webappcontext. It is typically called when a context is removed from a server handler hierarchy by the deployer.

Parameters
context:WebAppContext

The context to configure

Annotations
@Override
Exceptions
Exception:
if unable to destroy
getDependenciesback to summary
public Collection<String> getDependencies()

Overrides default org.eclipse.jetty.ee10.webapp.Configuration.getDependencies.

Doc from org.eclipse.jetty.ee10.webapp.Configuration.getDependencies.

Get known Configuration Dependencies.

Returns:Collection<String>

The names of Configurations that TopologicalSort must order before this configuration.

Annotations
@Override
getDependentsback to summary
public Collection<String> getDependents()

Overrides default org.eclipse.jetty.ee10.webapp.Configuration.getDependents.

Doc from org.eclipse.jetty.ee10.webapp.Configuration.getDependents.

Get known Configuration Dependents.

Returns:Collection<String>

The names of Configurations that TopologicalSort must order after this configuration.

Annotations
@Override
getServerClassesback to summary
public ClassMatcher getServerClasses()

Overrides default org.eclipse.jetty.ee10.webapp.Configuration.getServerClasses.

Doc from org.eclipse.jetty.ee10.webapp.Configuration.getServerClasses.

Get the system classes associated with this Configuration.

Returns:ClassMatcher

ClassMatcher of server classes.

Annotations
@Override
getSystemClassesback to summary
public ClassMatcher getSystemClasses()

Overrides default org.eclipse.jetty.ee10.webapp.Configuration.getSystemClasses.

Doc from org.eclipse.jetty.ee10.webapp.Configuration.getSystemClasses.

Get the system classes associated with this Configuration.

Returns:ClassMatcher

ClassMatcher of system classes.

Annotations
@Override
isEnabledByDefaultback to summary
public boolean isEnabledByDefault()

Implements org.eclipse.jetty.ee10.webapp.Configuration.isEnabledByDefault.

Returns:boolean

Doc from org.eclipse.jetty.ee10.webapp.Configuration.isEnabledByDefault.

true if configuration is enabled by default

Annotations
@Override
postConfigureback to summary
public void postConfigure(WebAppContext context) throws Exception

Implements org.eclipse.jetty.ee10.webapp.Configuration.postConfigure.

Doc from org.eclipse.jetty.ee10.webapp.Configuration.postConfigure.

Clear down after configuration.

Parameters
context:WebAppContext

The context to configure

Annotations
@Override
Exceptions
Exception:
if unable to post configure
preConfigureback to summary
public void preConfigure(WebAppContext context) throws Exception

Implements org.eclipse.jetty.ee10.webapp.Configuration.preConfigure.

Doc from org.eclipse.jetty.ee10.webapp.Configuration.preConfigure.

Set up for configuration.

Typically this step discovers configuration resources. Calls to preConfigure may alter the Configurations configured on the WebAppContext, so long as configurations prior to this configuration are not altered.

Parameters
context:WebAppContext

The context to configure

Annotations
@Override
Exceptions
Exception:
if unable to pre configure
org.eclipse.jetty.ee10.webapp back to summary

public Class AbstractConfiguration.Builder

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final List<String>
private final List<String>
private boolean
private final ClassMatcher
private final ClassMatcher

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public AbstractConfiguration.Builder
addDependencies(String...
Classname or package name
classes
)

Add configuration classes that come before this configuration

public final AbstractConfiguration.Builder
addDependencies(Class<? extends Configuration>...
Classes
classes
)

Add configuration classes that come before this configuration

public AbstractConfiguration.Builder
addDependents(String...
Classname or package name
classes
)

Add configuration classes that come after this configuration

public AbstractConfiguration.Builder
addDependents(Class<?>...
Class
classes
)

Add configuration classes that come after this configuration

public AbstractConfiguration.Builder
enabledByDefault(boolean enabledByDefault)

public AbstractConfiguration.Builder
expose(String...
classname or package pattern
classes
)

Expose classes to the web application by adding them as exclusions to the WebAppConfiguration#getServerClasses()

public AbstractConfiguration.Builder
hide(String...
classname or package pattern
classes
)

Hide classes from the web application by adding them to the WebAppConfiguration#getServerClasses()

public AbstractConfiguration.Builder
protect(String...
classname or package pattern
classes
)

Protect classes from modification by the web application by adding them to the WebAppConfiguration#getSystemClasses()

public AbstractConfiguration.Builder
protectAndExpose(String...
classname or package pattern
classes
)

Protect classes from modification by the web application by adding them to the WebAppConfiguration#getSystemClasses() and expose them to the web application by adding them as exclusions to the WebAppConfiguration#getServerClasses()

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_afterback to summary
private final List<String> _after
_beforeback to summary
private final List<String> _before
_enabledByDefaultback to summary
private boolean _enabledByDefault
_serverback to summary
private final ClassMatcher _server
_systemback to summary
private final ClassMatcher _system

Constructor Detail

Builderback to summary
public Builder()

Method Detail

addDependenciesback to summary
public AbstractConfiguration.Builder addDependencies(String... classes)

Add configuration classes that come before this configuration

Parameters
classes:String[]

Classname or package name

addDependenciesback to summary
public final AbstractConfiguration.Builder addDependencies(Class<? extends Configuration>... classes)

Add configuration classes that come before this configuration

Parameters
classes:Class<? extends Configuration>[]

Classes

Annotations
@SafeVarargs
addDependentsback to summary
public AbstractConfiguration.Builder addDependents(String... classes)

Add configuration classes that come after this configuration

Parameters
classes:String[]

Classname or package name

addDependentsback to summary
public AbstractConfiguration.Builder addDependents(Class<?>... classes)

Add configuration classes that come after this configuration

Parameters
classes:Class<?>[]

Class

enabledByDefaultback to summary
public AbstractConfiguration.Builder enabledByDefault(boolean enabledByDefault)
exposeback to summary
public AbstractConfiguration.Builder expose(String... classes)

Expose classes to the web application by adding them as exclusions to the WebAppConfiguration#getServerClasses()

Parameters
classes:String[]

classname or package pattern

hideback to summary
public AbstractConfiguration.Builder hide(String... classes)

Hide classes from the web application by adding them to the WebAppConfiguration#getServerClasses()

Parameters
classes:String[]

classname or package pattern

protectback to summary
public AbstractConfiguration.Builder protect(String... classes)

Protect classes from modification by the web application by adding them to the WebAppConfiguration#getSystemClasses()

Parameters
classes:String[]

classname or package pattern

protectAndExposeback to summary
public AbstractConfiguration.Builder protectAndExpose(String... classes)

Protect classes from modification by the web application by adding them to the WebAppConfiguration#getSystemClasses() and expose them to the web application by adding them as exclusions to the WebAppConfiguration#getServerClasses()

Parameters
classes:String[]

classname or package pattern