Class 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
    • Field Summary

      • Fields inherited from class java.util.AbstractList

        modCount
    • Constructor Summary

      Constructors 
      Constructor Description
      ClassList()  
      ClassList​(java.lang.String[] classes)  
      ClassList​(java.util.List<java.lang.String> classes)  
    • 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
      • Methods inherited from class java.util.AbstractCollection

        containsAll, toString
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Collection

        parallelStream, stream, toArray
      • Methods inherited from interface java.util.List

        containsAll
    • Constructor Detail

      • ClassList

        public ClassList()
      • ClassList

        public ClassList​(java.lang.String[] classes)
      • ClassList

        public ClassList​(java.util.List<java.lang.String> classes)
    • 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)
      • replace

        public void replace​(@Name("replaceClass")
                            java.lang.String replaceClass,
                            @Name("configClass")
                            java.lang.String configClass)