aboutsummaryrefslogtreecommitdiffstats
path: root/config-model-api/src/main/java/com/yahoo/config/model/api/SuperModelProvider.java
blob: 809dd74ae6864e9b50dd0eecb3fb4aec39b4657d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.config.model.api;

public interface SuperModelProvider {
    /**
     * Synchronously call {@link SuperModelListener#applicationActivated(SuperModel, ApplicationInfo)
     * listener.applicationActivated()} on all active applications, and register the listener for future changes
     * to the super model.
     *
     * WARNING: The listener may be called asynchronously before the method returns.
     */
    void registerListener(SuperModelListener listener);

    SuperModel getSuperModel();
}