]> git.basschouten.com Git - openhab-addons.git/blob
3f76cbe51b9717a6514643fc816a1e590ed5c844
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2022 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
7  * This program and the accompanying materials are made available under the
8  * terms of the Eclipse Public License 2.0 which is available at
9  * http://www.eclipse.org/legal/epl-2.0
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13
14 package org.openhab.automation.jsscripting.internal.scope;
15
16 import org.eclipse.jdt.annotation.NonNullByDefault;
17
18 /**
19  * Specifies that an object is aware of script disposal events
20  *
21  * @author Jonathan Gilbert - Initial contribution
22  */
23 @NonNullByDefault
24 public interface ScriptDisposalAware {
25
26     /**
27      * Indicates that the script has been disposed
28      *
29      * @param scriptIdentifier the identifier for the script
30      */
31     void unload(String scriptIdentifier);
32 }