Class OverrideProperties


  • public class OverrideProperties
    extends Object
    • Field Detail

      • resources

        protected List<org.springframework.core.io.Resource> resources
        List of all Query files to be load.
      • properties

        protected Properties properties
        Backend properties file.
    • Constructor Detail

      • OverrideProperties

        public OverrideProperties()
        Create a JongoQueries instance.
    • Method Detail

      • init

        public void init()
        Checks and starts the reading of the given Resources.
      • readPropertyFile

        protected void readPropertyFile​(InputStream input)
                                 throws IOException
        Does the actual Reading of the properties file (of the given inputstream).
        Parameters:
        input - Input to be read.
        Throws:
        IOException - If unable to read the given inputstream
      • get

        public String get​(String name)
        Gets the Query with the given name. Null if query is not found.
        Parameters:
        name - Name of the query.
        Returns:
        Query with the given name. Null if nothing with that name if found.
      • reload

        public void reload()
        Reload the Query map.
      • setResources

        public void setResources​(List<org.springframework.core.io.Resource> resources)