
com.liferay.commerce.data.integration.service.util.ServiceProps Maven / Gradle / Ivy
/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* The contents of this file are subject to the terms of the Liferay Enterprise
* Subscription License ("License"). You may not use this file except in
* compliance with the License. You can obtain a copy of the License by
* contacting Liferay, Inc. See the License for the specific language governing
* permissions and limitations under the License, including but not limited to
* distribution rights of the Software.
*
*
*
*/
package com.liferay.commerce.data.integration.service.util;
import com.liferay.portal.kernel.configuration.Configuration;
import com.liferay.portal.kernel.configuration.ConfigurationFactoryUtil;
import com.liferay.portal.kernel.configuration.Filter;
import java.util.Properties;
/**
* @author Alessio Antonio Rendina
* @generated
*/
public class ServiceProps {
public static void addProperties(Properties properties) {
_instance._configuration.addProperties(properties);
}
public static boolean contains(String key) {
return _instance._configuration.contains(key);
}
public static String get(String key) {
return _instance._configuration.get(key);
}
public static String get(String key, Filter filter) {
return _instance._configuration.get(key, filter);
}
public static String[] getArray(String key) {
return _instance._configuration.getArray(key);
}
public static String[] getArray(String key, Filter filter) {
return _instance._configuration.getArray(key, filter);
}
public static Properties getProperties() {
return _instance._configuration.getProperties();
}
public static void removeProperties(Properties properties) {
_instance._configuration.removeProperties(properties);
}
public static void set(String key, String value) {
_instance._configuration.set(key, value);
}
private ServiceProps() {
_configuration = ConfigurationFactoryUtil.getConfiguration(
getClass().getClassLoader(), "service");
}
private static ServiceProps _instance = new ServiceProps();
private Configuration _configuration;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy