Class OverrideProperties
- java.lang.Object
-
- org.craftercms.commons.properties.OverrideProperties
-
public class OverrideProperties extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected Properties
properties
Backend properties file.protected List<org.springframework.core.io.Resource>
resources
List of all Query files to be load.
-
Constructor Summary
Constructors Constructor Description OverrideProperties()
Create a JongoQueries instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
get(String name)
Gets the Query with the given name.void
init()
Checks and starts the reading of the given Resources.protected void
readPropertyFile(InputStream input)
Does the actual Reading of the properties file (of the given inputstream).void
reload()
Reload the Query map.void
setResources(List<org.springframework.core.io.Resource> resources)
-
-
-
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.
-
-
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)
-
-