Class Configuration.ClassList

All Implemented Interfaces:
Serializable, Cloneable, Iterable<String>, Collection<String>, List<String>, RandomAccess, SequencedCollection<String>
Enclosing interface:
Configuration

public static class Configuration.ClassList extends ArrayList<String>
See Also:
  • Constructor Details

    • ClassList

      public ClassList()
    • ClassList

      public ClassList(String[] classes)
    • ClassList

      public ClassList(List<String> classes)
  • Method Details

    • 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") String afterClass, @Name("configClass") String... configClass)
    • addBefore

      public void addBefore(@Name("beforeClass") String beforeClass, @Name("configClass") String... configClass)
    • replace

      public void replace(@Name("replaceClass") String replaceClass, @Name("configClass") String configClass)