Class Configurations
- All Implemented Interfaces:
- Iterable<Configuration>, Collection<Configuration>, List<Configuration>, SequencedCollection<Configuration>, Dumpable
Configuration instances.
The ordering of Configurations will initially be the order in which they
are added.  The sort() method can be used to apply a
TopologicalSort to the ordering as defined by the
Configuration.getDependencies() and
Configuration.getDependents() methods.
Instances that do not have ordering dependencies will maintain
their add order, as will additions/insertions made after the
the sort.
If an added Configuration returns a value for
Configuration.replaces() then the added instance will replace
any existing instance of that type or that has already replaced that
type.
- 
Nested Class SummaryNested classes/interfaces inherited from interface DumpableDumpable.DumpableContainer
- 
Field SummaryFieldsFields inherited from class AbstractListmodCount
- 
Constructor SummaryConstructorsConstructorDescriptionConfigurations(String... classes) Configurations(List<String> classes) Configurations(Configurations classlist) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidbooleanadd(Configuration configuration) voidadd(Configuration... configurations) voidclear()booleanconfigure(WebAppContext webapp) dump()voiddump(Appendable out, String indent) Dump this object (and children) into an Appendable using the provided indent after any new lines.get(int index) <T> T<T> List<T> getConfigurations(Class<? extends T> configClass) static List<Configuration> getKnown()static ConfigurationsgetServerDefault(Server server) Get/Create the server default Configuration ClassList.iterator()protected static ConfigurationnewConfiguration(String classname) voidpostConfigure(WebAppContext webapp) voidpreConfigure(WebAppContext webapp) voidremove(Class<? extends Configuration>... configClass) voidvoidremove(Configuration... configurations) voidvoidset(Configuration... configurations) static voidstatic ConfigurationssetServerDefault(Server server) Get/Set/Create the server default Configuration ClassList.intsize()voidsort()static voidsort(List<Configuration> configurations) String[]toArray()toString()Methods inherited from class AbstractListadd, addAll, equals, hashCode, indexOf, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListMethods inherited from class AbstractCollectionaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArrayMethods inherited from interface CollectionparallelStream, removeIf, stream, toArrayMethods inherited from interface ListaddAll, addFirst, addLast, contains, containsAll, getFirst, getLast, isEmpty, remove, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, sort, spliterator, toArray
- 
Field Details- 
_configurations
 
- 
- 
Constructor Details- 
Configurationspublic Configurations()
- 
Configurations
- 
Configurations
- 
Configurations
 
- 
- 
Method Details- 
getKnown
- 
setKnown
- 
setServerDefaultGet/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.
 
- 
getServerDefaultGet/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.
 
- 
newConfiguration
- 
add- Specified by:
- addin interface- Collection<Configuration>
- Specified by:
- addin interface- List<Configuration>
- Overrides:
- addin class- AbstractList<Configuration>
 
- 
add
- 
add
- 
get
- 
getConfigurations
- 
clearpublic void clear()- Specified by:
- clearin interface- Collection<Configuration>
- Specified by:
- clearin interface- List<Configuration>
- Overrides:
- clearin class- AbstractList<Configuration>
 
- 
set
- 
set
- 
remove
- 
remove
- 
remove
- 
sizepublic int size()- Specified by:
- sizein interface- Collection<Configuration>
- Specified by:
- sizein interface- List<Configuration>
- Specified by:
- sizein class- AbstractCollection<Configuration>
 
- 
toArray- Specified by:
- toArrayin interface- Collection<Configuration>
- Specified by:
- toArrayin interface- List<Configuration>
- Overrides:
- toArrayin class- AbstractCollection<Configuration>
 
- 
sortpublic void sort()
- 
sort
- 
getConfigurations
- 
get- Specified by:
- getin interface- List<Configuration>
- Specified by:
- getin class- AbstractList<Configuration>
 
- 
iterator- Specified by:
- iteratorin interface- Collection<Configuration>
- Specified by:
- iteratorin interface- Iterable<Configuration>
- Specified by:
- iteratorin interface- List<Configuration>
- Overrides:
- iteratorin class- AbstractList<Configuration>
 
- 
toString- Overrides:
- toStringin class- AbstractCollection<Configuration>
 
- 
preConfigure- Throws:
- Exception
 
- 
configure- Parameters:
- webapp- The webapp to configure
- Returns:
- false if a Configuration.abort(WebAppContext)returns true, true otherwise
- Throws:
- Exception- Thrown by- Configuration.configure(WebAppContext)
 
- 
postConfigure- Throws:
- Exception
 
- 
dump
- 
dumpDescription copied from interface:DumpableDump this object (and children) into an Appendable using the provided indent after any new lines. The indent should not be applied to the first object dumped.- Specified by:
- dumpin interface- Dumpable
- Parameters:
- out- The appendable to dump to
- indent- The indent to apply after any new lines.
- Throws:
- IOException- if unable to write to Appendable
 
 
-