Class GroupFactory

  • All Implemented Interfaces:
    GroupConfig

    public class GroupFactory
    extends GroupManager

    GroupFactory class.

    Version:
    $Id: $
    Author:
    ranger
    • Constructor Detail

      • GroupFactory

        public GroupFactory()
                     throws java.io.FileNotFoundException,
                            java.io.IOException
        Constructor which parses the file
        Throws:
        java.io.IOException - if any.
        java.io.FileNotFoundException - if any.
    • Method Detail

      • init

        public static void init()
                         throws java.io.IOException,
                                java.io.FileNotFoundException

        init

        Throws:
        java.io.IOException - if any.
        java.io.FileNotFoundException - if any.
      • getInstance

        public static GroupManager getInstance()
        Singleton static call to get the only instance that should exist for the GroupFactory
        Returns:
        the single group factory instance
      • setInstance

        public static void setInstance​(GroupManager mgr)

        setInstance

        Parameters:
        mgr - a GroupManager object.
      • reload

        public void reload()
                    throws java.io.IOException,
                           java.io.FileNotFoundException
        Parses the groups.xml
        Throws:
        java.io.IOException - if any.
        java.io.FileNotFoundException - if any.
      • saveXml

        protected void saveXml​(java.lang.String data)
                        throws java.io.IOException

        saveXml

        Specified by:
        saveXml in class GroupManager
        Parameters:
        data - a String object.
        Throws:
        java.io.IOException - if any.
      • update

        public void update()
                    throws java.io.IOException

        update

        Specified by:
        update in class GroupManager
        Throws:
        java.io.IOException - if any.