Let StartLevelService only start once its configuration is available (#1942)

Signed-off-by: Kai Kreuzer <kai@openhab.org>
This commit is contained in:
Kai Kreuzer 2020-12-16 12:47:03 +01:00 committed by GitHub
parent 990b579865
commit 0dd4cc97fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,6 +38,7 @@ import org.osgi.framework.BundleContext;
import org.osgi.framework.startlevel.FrameworkStartLevel;
import org.osgi.service.component.annotations.Activate;
import org.osgi.service.component.annotations.Component;
import org.osgi.service.component.annotations.ConfigurationPolicy;
import org.osgi.service.component.annotations.Deactivate;
import org.osgi.service.component.annotations.Modified;
import org.osgi.service.component.annotations.Reference;
@ -68,7 +69,7 @@ import org.slf4j.LoggerFactory;
*
*/
@NonNullByDefault
@Component(immediate = true, configurationPid = "org.openhab.startlevel")
@Component(immediate = true, configurationPid = "org.openhab.startlevel", configurationPolicy = ConfigurationPolicy.REQUIRE)
public class StartLevelService {
public final static String STARTLEVEL_MARKER_TYPE = "startlevel";