Package gov.usgs.util

Interface Configurable

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void configure​(Config config)
      This method is called after an object is instantiated, but before any other methods are called.
      java.lang.String getName()
      Get this object name.
      void setName​(java.lang.String string)
      Set this object name.
      void shutdown()
      This method is called when the client is shutting down.
      void startup()
      This method is called after all objects are configured, and processing should begin.
    • Method Detail

      • configure

        void configure​(Config config)
                throws java.lang.Exception
        This method is called after an object is instantiated, but before any other methods are called.
        Parameters:
        config - the Config to load.
        Throws:
        java.lang.Exception - if configuration exceptions occur.
      • startup

        void startup()
              throws java.lang.Exception
        This method is called after all objects are configured, and processing should begin.
        Throws:
        java.lang.Exception - if exceptions occur while starting.
      • shutdown

        void shutdown()
               throws java.lang.Exception
        This method is called when the client is shutting down.
        Throws:
        java.lang.Exception - if exceptions occur while starting.
      • getName

        java.lang.String getName()
        Get this object name.
        Returns:
        the name.
      • setName

        void setName​(java.lang.String string)
        Set this object name. This method is typically called by a Config object when the configurable object is loaded out of a config file. name will be set to the config section.
        Parameters:
        string - the name.