Skip to content

Commit

Permalink
Docs little upgrade.
Browse files Browse the repository at this point in the history
  • Loading branch information
Serg-Maximchuk committed Dec 30, 2015
1 parent 9770044 commit 6abf9dc
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions docs/fundamental/advanced-configuration/properties.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,37 +19,33 @@ Server properties
While starting application, ImCMS automatically read its root path and goes to ``WEB-INF/conf/server.properties`` to
read server properties. Properties from this file can be accessed by next methods:

- read the value of ``property`` from server properties:
.. code-block:: java
PropertyManager.getServerConfProperty(String property);
- read the value of ``property`` from server properties.

- returns server properties in ``Properties`` type for next use:
.. code-block:: java
PropertyManager.getServerConfProperties();
- returns server properties in ``Properties`` type for next use.
Properties in other files
"""""""""""""""""""""""""

If you need to read some properties from another files, you may use next methods:

- read the value of ``property`` from properties file by specified path:
.. code-block:: java
PropertyManager.getPropertyFrom(String path, String property);
- read the value of ``property`` from properties file by specified path.

- read the Integer value of ``property`` from properties file by specified path:
.. code-block:: java
PropertyManager.getIntegerPropertyFrom(String path, String property);
- read the Integer value of ``property`` from properties file by specified path.

- returns properties which lies by specified path in ``Properties`` type for next use:
.. code-block:: java
PropertyManager.getPropertiesFrom(String path);
- returns properties which lies by specified path in ``Properties`` type for next use.

0 comments on commit 6abf9dc

Please sign in to comment.