Class OverrideProperties
java.lang.Object
org.craftercms.commons.properties.OverrideProperties
-
Field Summary
Modifier and TypeFieldDescriptionprotected Properties
Backend properties file.protected List<org.springframework.core.io.Resource>
List of all Query files to be load. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets 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 Details
-
resources
List of all Query files to be load. -
properties
Backend properties file.
-
-
Constructor Details
-
OverrideProperties
public OverrideProperties()Create a JongoQueries instance.
-
-
Method Details
-
init
public void init()Checks and starts the reading of the given Resources. -
readPropertyFile
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
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
-