| | |
| | | private String serverRootDirectory; |
| | | private String serverInstanceDirectory; |
| | | private String configurationFile; |
| | | private boolean disableConnectionHandlers; |
| | | |
| | | private ConfigParameters() |
| | | { |
| | |
| | | String getServerInstanceDirectory() |
| | | { |
| | | // provides the expected default value if not set |
| | | return serverInstanceDirectory != null ? serverInstanceDirectory : serverRootDirectory; |
| | | return serverInstanceDirectory; |
| | | } |
| | | |
| | | String getConfigurationFile() |
| | |
| | | return configurationFile; |
| | | } |
| | | |
| | | boolean isDisableConnectionHandlers() |
| | | { |
| | | return disableConnectionHandlers; |
| | | } |
| | | |
| | | /** |
| | | * Builder for this class. |
| | | */ |
| | |
| | | params.configurationFile = file; |
| | | return this; |
| | | } |
| | | |
| | | /** |
| | | * Sets the indicator allowing to disable the connection handlers. |
| | | * |
| | | * @param disable |
| | | * {@code true} to disable the connection handlers |
| | | * @return this builder |
| | | */ |
| | | public Builder disableConnectionHandlers(boolean disable) |
| | | { |
| | | params.disableConnectionHandlers = disable; |
| | | return this; |
| | | } |
| | | } |
| | | } |