Class Configurations

    • Field Detail

      • _configurations

        protected java.util.List<Configuration> _configurations
    • Constructor Detail

      • Configurations

        public Configurations()
      • Configurations

        public Configurations​(java.lang.String... classes)
      • Configurations

        public Configurations​(java.util.List<java.lang.String> classes)
    • Method Detail

      • getKnown

        public static java.util.List<Configuration> getKnown()
      • setKnown

        public static void setKnown​(java.lang.String... classes)
      • setServerDefault

        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

        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.
      • getServerDefault

        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.

        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

        protected static Configuration newConfiguration​(java.lang.String classname)
      • add

        public void add​(@Name("configClass")
                        java.lang.String... configClass)
      • get

        public <T> T get​(java.lang.Class<? extends T> configClass)
      • getConfigurations

        public <T> java.util.List<T> getConfigurations​(java.lang.Class<? extends T> configClass)
      • clear

        public void clear()
        Specified by:
        clear in interface java.util.Collection<Configuration>
        Specified by:
        clear in interface java.util.List<Configuration>
        Overrides:
        clear in class java.util.AbstractList<Configuration>
      • set

        public void set​(@Name("configClass")
                        java.lang.String... configClass)
      • remove

        public void remove​(Configuration... configurations)
      • remove

        public void remove​(java.lang.Class<? extends Configuration>... configClass)
      • remove

        public void remove​(@Name("configClass")
                           java.lang.String... configClass)
      • size

        public int size()
        Specified by:
        size in interface java.util.Collection<Configuration>
        Specified by:
        size in interface java.util.List<Configuration>
        Specified by:
        size in class java.util.AbstractCollection<Configuration>
      • toArray

        public java.lang.String[] toArray()
        Specified by:
        toArray in interface java.util.Collection<Configuration>
        Specified by:
        toArray in interface java.util.List<Configuration>
        Overrides:
        toArray in class java.util.AbstractCollection<Configuration>
      • sort

        public void sort()
      • sort

        public static void sort​(java.util.List<Configuration> configurations)
      • getConfigurations

        public java.util.List<Configuration> getConfigurations()
      • iterator

        public java.util.Iterator<Configuration> iterator()
        Specified by:
        iterator in interface java.util.Collection<Configuration>
        Specified by:
        iterator in interface java.lang.Iterable<Configuration>
        Specified by:
        iterator in interface java.util.List<Configuration>
        Overrides:
        iterator in class java.util.AbstractList<Configuration>
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.util.AbstractCollection<Configuration>
      • preConfigure

        public void preConfigure​(WebAppContext webapp)
                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • postConfigure

        public void postConfigure​(WebAppContext webapp)
                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • dump

        public java.lang.String dump()
        Specified by:
        dump in interface Dumpable
      • dump

        public void dump​(java.lang.Appendable out,
                         java.lang.String indent)
                  throws java.io.IOException
        Description copied from interface: Dumpable
        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.
        Specified by:
        dump in interface Dumpable
        Parameters:
        out - The appendable to dump to
        indent - The indent to apply after any new lines.
        Throws:
        java.io.IOException - if unable to write to Appendable