mirror of
https://github.com/danieldemus/openhab-core.git
synced 2025-01-25 19:55:48 +01:00
Let StartLevelService only start once its configuration is available (#1942)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
This commit is contained in:
parent
990b579865
commit
0dd4cc97fe
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user