Package org.eclipse.jetty.webapp
Class Configuration.ClassList
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.ArrayList<java.lang.String>
-
- org.eclipse.jetty.webapp.Configuration.ClassList
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.lang.Iterable<java.lang.String>
,java.util.Collection<java.lang.String>
,java.util.List<java.lang.String>
,java.util.RandomAccess
- Enclosing interface:
- Configuration
public static class Configuration.ClassList extends java.util.ArrayList<java.lang.String>
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAfter(java.lang.String afterClass, java.lang.String... configClass)
void
addBefore(java.lang.String beforeClass, java.lang.String... configClass)
void
replace(java.lang.String replaceClass, java.lang.String configClass)
static Configuration.ClassList
serverDefault(Server server)
Get/Create the server default Configuration ClassList.static Configuration.ClassList
setServerDefault(Server server)
Get/Set/Create the server default Configuration ClassList.-
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
-
-
-
-
Method Detail
-
setServerDefault
public static Configuration.ClassList setServerDefault(Server server)
Get/Set/Create the server default Configuration ClassList.Get the class list from: a Server bean; or the attribute (which can either be a ClassList instance or an String[] of class names); or a new instance with default configuration classes.
This method also adds the obtained ClassList instance as a dependent bean on the server and clears the attribute
- Parameters:
server
- The server the default is for- Returns:
- the server default ClassList instance of the configuration classes for this server. Changes to this list will change the server default instance.
-
serverDefault
public static Configuration.ClassList serverDefault(Server server)
Get/Create the server default Configuration ClassList.Get the class list from: a Server bean; or the attribute (which can either be a ClassList instance or an String[] of class names); or a new instance with default configuration classes.
- Parameters:
server
- The server the default is for- Returns:
- A copy of the server default ClassList instance of the configuration classes for this server. Changes to the returned list will not change the server default.
-
addAfter
public void addAfter(@Name("afterClass") java.lang.String afterClass, @Name("configClass") java.lang.String... configClass)
-
addBefore
public void addBefore(@Name("beforeClass") java.lang.String beforeClass, @Name("configClass") java.lang.String... configClass)
-
-