public class OverrideProperties extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Properties |
properties
Backend properties file.
|
protected List<org.springframework.core.io.Resource> |
resources
List of all Query files to be load.
|
| Constructor and Description |
|---|
OverrideProperties()
Create a JongoQueries instance.
|
| Modifier and Type | Method and 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) |
protected List<org.springframework.core.io.Resource> resources
protected Properties properties
public void init()
protected void readPropertyFile(InputStream input) throws IOException
input - Input to be read.IOException - If unable to read the given inputstreampublic String get(String name)
name - Name of the query.public void reload()
public void setResources(List<org.springframework.core.io.Resource> resources)
Copyright © 2018 CrafterCMS. All rights reserved.