Class ServerDescriptorDAOImpl

  • All Implemented Interfaces:
    DescriptorDAO

    public class ServerDescriptorDAOImpl
    extends Object
    implements DescriptorDAO
    Manages retrieval of the server Descriptor from a read-only resource file.
    • Field Detail

      • serverProperties

        protected Properties serverProperties
        The server properties.
    • Constructor Detail

      • ServerDescriptorDAOImpl

        public ServerDescriptorDAOImpl()
    • Method Detail

      • setRepositoryName

        public void setRepositoryName​(String repositoryName)
                               throws IOException
        Sets the repository properties from a resource file.
        Parameters:
        repositoryName - the repository name
        Throws:
        IOException - Signals that an I/O exception has occurred.
      • setResource

        public void setResource​(org.springframework.core.io.Resource[] locations)
                         throws IOException
        Sets the server descriptor from a resource file.
        Parameters:
        locations - resources containing server descriptor meta-data
        Throws:
        IOException - Signals that an I/O exception has occurred.
      • getLicenseKey

        public byte[] getLicenseKey()
        Description copied from interface: DescriptorDAO
        Gets the license key.
        Specified by:
        getLicenseKey in interface DescriptorDAO
        Returns:
        the license key
      • updateLicenseKey

        public void updateLicenseKey​(byte[] key)
        Description copied from interface: DescriptorDAO
        Update license key.
        Specified by:
        updateLicenseKey in interface DescriptorDAO
        Parameters:
        key - the key