Skip to contentPackage: ServiceConfigCreator
ServiceConfigCreator
Coverage
1: /*******************************************************************************
2: * Copyright (c) 2016, 2022 Eurotech and/or its affiliates and others
3: *
4: * This program and the accompanying materials are made
5: * available under the terms of the Eclipse Public License 2.0
6: * which is available at https://www.eclipse.org/legal/epl-2.0/
7: *
8: * SPDX-License-Identifier: EPL-2.0
9: *
10: * Contributors:
11: * Eurotech - initial API and implementation
12: *******************************************************************************/
13: package org.eclipse.kapua.commons.configuration;
14:
15: import java.util.Properties;
16:
17: import org.eclipse.kapua.KapuaException;
18: import org.eclipse.kapua.model.KapuaUpdatableEntityCreator;
19:
20: /**
21: * Service configuration creator definition.
22: *
23: * @since 1.0
24: */
25: public interface ServiceConfigCreator extends KapuaUpdatableEntityCreator<ServiceConfig> {
26:
27: /**
28: * Return service pid
29: *
30: * @return
31: */
32: public String getPid();
33:
34: /**
35: * Set service pid
36: *
37: * @param pid
38: */
39: public void setPid(String pid);
40:
41: /**
42: * Return service configurations
43: *
44: * @return
45: * @throws KapuaException
46: */
47: public Properties getConfigurations() throws KapuaException;
48:
49: /**
50: * Set service configurations
51: *
52: * @param configurations
53: * @throws KapuaException
54: */
55: public void setConfigurations(Properties configurations) throws KapuaException;
56: }