summaryrefslogtreecommitdiffstats
path: root/config-model-api/src/main/java/com/yahoo/config/model/api/SuperModelListener.java
blob: 043e23902b2943f033f3265270bf2aea197cccc8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.config.model.api;

import com.yahoo.config.provision.ApplicationId;

/**
 * Interface for those wanting to be notified about changes to the SuperModel.
 */
public interface SuperModelListener {
    /**
     * Application has been activated: Either deployed the first time,
     * internally redeployed, or externally triggered redeploy.
     */
    void applicationActivated(SuperModel superModel, ApplicationId id);

    /**
     * Application has been removed.
     */
    void applicationRemoved(SuperModel superModel, ApplicationId id);
}