Commit f5042d4f authored by Ard Schrijvers's avatar Ard Schrijvers

CMS-9801 Add EnvironmentSettings service api which for now just has a get and put.

parent ca640504
......@@ -4,6 +4,7 @@
src/main/java/org/onehippo/cms7/services/HippoServiceException.java -text
src/main/java/org/onehippo/cms7/services/SingletonService.java -text
src/main/java/org/onehippo/cms7/services/autoreload/AutoReloadService.java -text
src/main/java/org/onehippo/cms7/services/environment/EnvironmentSettings.java -text
src/main/java/org/onehippo/cms7/services/eventbus/HippoEventListener.java -text svneol=unset#text/plain
src/main/java/org/onehippo/cms7/services/eventbus/Subscribe.java -text
src/main/java/org/onehippo/cms7/services/googleanalytics/GoogleAnalyticsService.java -text
......
/*
* Copyright 2016 Hippo B.V. (http://www.onehippo.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.onehippo.cms7.services.environment;
import org.onehippo.cms7.services.SingletonService;
import org.onehippo.cms7.services.WhiteboardService;
@SingletonService
@WhiteboardService
public interface EnvironmentSettings {
/**
* Returns the String value of the environment setting for {@code name}. The String value can represent a more complex
* object in case it is a json value
* @param name the name of the environment parameter
* @return the String value of the environment setting for {@code name}
*/
String get(String name);
/**
* Puts a environment value for environment parameter {@code name}
* @param name the name of the environment parameter
* @param value the value of the environment parameter
*/
void put(String name, String value);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment