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.
| Modifier and Type | Field and Description |
|---|---|
| private static final List | |
| private static final Set | |
| private static final AutoLock | |
| private static final List | |
| private final List | |
| private static final Logger | |
| public static final String |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | add(Configuration
element to be appended to this list configuration)Overrides java. Implements java. Appends the specified element to the end of this list (optional operation). |
| public void | add(Configuration...
element to be appended to this list configurations)Overrides java. Implements java. Appends the specified element to the end of this list (optional operation). |
| public void | add(String...
element to be appended to this list configClass)Overrides java. Implements java. Appends the specified element to the end of this list (optional operation). |
| private boolean | |
| pack-priv static void | |
| public void | clear()
Overrides java. Implements java. Removes all of the elements from this list (optional operation). |
| public boolean | configure(WebAppContext
The webapp to configure webapp)Returns: false if a |
| public String | |
| public void | dump(Appendable
The appendable to dump to out, String The indent to apply after any new lines. indent)Implements org. Dump this object (and children) into an Appendable using the provided indent after any new lines. |
| public <T> T | |
| public Configuration | get(int
index of the element to return index)Implements abstract java. Implements java. Returns the element at the specified position in this list. |
| public <T> List | |
| public List | |
| public static List | |
| public static Configurations | 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.The server the default is for server)Get/Create the server default Configuration ClassList. |
| public Iterator | iterator()
Overrides java. Implements java. Returns an iterator over the elements in this list in proper sequence. |
| protected static Configuration | |
| public void | |
| public void | |
| public void | |
| public final void | |
| public void | |
| public void | |
| public void | |
| public static void | |
| public static Configurations | Returns: the server default ClassList instance of the configuration classes for this server. Changes to this list will change the server default instance.The server the default is for server)Get/Set/Create the server default Configuration ClassList. |
| public int | size()
Implements abstract java. Implements java. Returns the number of elements in this list. |
| public void | |
| public static void | |
| public Configuration[] | toArray()
Overrides java. Implements java. Returns an array containing all of the elements in this list in proper sequence (from first to last element). |
| public String | toString()
Overrides java. Returns a string representation of this collection. |
| public String[] |
| __known | back to summary |
|---|---|
| private static final List<Configuration> __known | |
| __knownByClassName | back to summary |
|---|---|
| private static final Set<String> __knownByClassName | |
| __lock | back to summary |
|---|---|
| private static final AutoLock __lock | |
| __unavailable | back to summary |
|---|---|
| private static final List<Configuration> __unavailable | |
| _configurations | back to summary |
|---|---|
| private final List<Configuration> _configurations | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| SERVER_DEFAULT_ATTR | back to summary |
|---|---|
| public static final String SERVER_DEFAULT_ATTR | |
| Configurations | back to summary |
|---|---|
| public Configurations() | |
| Configurations | back to summary |
|---|---|
| public Configurations(List<Configuration> configurations) | |
| Configurations | back to summary |
|---|---|
| public Configurations(Configuration... configurations) | |
| Configurations | back to summary |
|---|---|
| public Configurations(String... configurationClassNames) | |
| add | back to summary |
|---|---|
| public boolean add(Configuration configuration) Overrides java. Implements java. Doc from java. Appends the specified element to the end of this list (optional operation). Lists that support this operation may place limitations on what elements may be added to this list. In particular, some lists will refuse to add null elements, and others will impose restrictions on the type of elements that may be added. List classes should clearly specify in their documentation any restrictions on what elements may be added.
| |
| add | back to summary |
|---|---|
| public void add(Configuration... configurations) Overrides java. Implements java. Doc from java. Appends the specified element to the end of this list (optional operation). Lists that support this operation may place limitations on what elements may be added to this list. In particular, some lists will refuse to add null elements, and others will impose restrictions on the type of elements that may be added. List classes should clearly specify in their documentation any restrictions on what elements may be added.
| |
| add | back to summary |
|---|---|
| public void add(String... configClass) Overrides java. Implements java. Doc from java. Appends the specified element to the end of this list (optional operation). Lists that support this operation may place limitations on what elements may be added to this list. In particular, some lists will refuse to add null elements, and others will impose restrictions on the type of elements that may be added. List classes should clearly specify in their documentation any restrictions on what elements may be added.
| |
| addConfiguration | back to summary |
|---|---|
| private boolean addConfiguration(Configuration configuration) | |
| cleanKnown | back to summary |
|---|---|
| pack-priv static void cleanKnown() | |
| clear | back to summary |
|---|---|
| public void clear() Overrides java. Implements java. Doc from java. Removes all of the elements from this list (optional operation). The list will be empty after this call returns. | |
| configure | back to summary |
|---|---|
public boolean configure(WebAppContext webapp) throws Exception
| |
| dump | back to summary |
|---|---|
| public String dump() Overrides default org.
| |
| dump | back to summary |
|---|---|
| public void dump(Appendable out, String indent) throws IOException Implements org. Doc from org. Dump 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.
| |
| get | back to summary |
|---|---|
| public <T> T get(Class<? extends T> configClass) | |
| get | back to summary |
|---|---|
| public Configuration get(int index) Implements abstract java. Implements java. Doc from java. Returns the element at the specified position in this list.
| |
| getConfigurations | back to summary |
|---|---|
| public <T> List | |
| getConfigurations | back to summary |
|---|---|
| public List | |
| getKnown | back to summary |
|---|---|
| public static List | |
| getServerDefault | back to summary |
|---|---|
| public static Configurations getServerDefault(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.
| |
| iterator | back to summary |
|---|---|
| public Iterator Overrides java. Implements java. Doc from java. Returns an iterator over the elements in this list in proper sequence.
| |
| newConfiguration | back to summary |
|---|---|
| protected static Configuration newConfiguration(String classname) | |
| postConfigure | back to summary |
|---|---|
| public void postConfigure(WebAppContext webapp) throws Exception | |
| preConfigure | back to summary |
|---|---|
| public void preConfigure(WebAppContext webapp) throws Exception | |
| remove | back to summary |
|---|---|
| public void remove(Configuration... configurations) | |
| remove | back to summary |
|---|---|
public final void remove(Class<? extends Configuration>... configClass)
| |
| remove | back to summary |
|---|---|
| public void remove(String... configClass) | |
| set | back to summary |
|---|---|
| public void set(Configuration... configurations) | |
| set | back to summary |
|---|---|
| public void set(String... configClass) | |
| setKnown | back to summary |
|---|---|
| public static void setKnown(String... classes) | |
| setServerDefault | back to summary |
|---|---|
| public static Configurations 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
| |
| size | back to summary |
|---|---|
| public int size() Implements abstract java. Implements java. Doc from java. Returns the number of elements in this list. If this list contains
more than
| |
| sort | back to summary |
|---|---|
| public void sort() | |
| sort | back to summary |
|---|---|
| public static void sort(List<Configuration> configurations) | |
| toArray | back to summary |
|---|---|
| public Configuration[] toArray() Overrides java. Implements java. Doc from java. Returns an array containing all of the elements in this list in proper sequence (from first to last element). The returned array will be "safe" in that no references to it are maintained by this list. (In other words, this method must allocate a new array even if this list is backed by an array). The caller is thus free to modify the returned array. This method acts as bridge between array-based and collection-based APIs.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of this collection. The string
representation consists of a list of the collection's elements in the
order they are returned by its iterator, enclosed in square brackets
( | |
| toStringArray | back to summary |
|---|---|
| public String[] toStringArray() | |