blob: 0df911039850c8e6fc3ee0e3de7abb3bc5d60de0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.container.di;
import org.osgi.framework.Bundle;
import java.util.Collection;
import java.util.List;
/**
* @author gjoranv
* @author Tony Vaagenes
*/
public interface ComponentDeconstructor {
/** Deconstructs the given components in order, then the given bundles. */
void deconstruct(long generation, List<Object> components, Collection<Bundle> bundles);
/** Wait for all previous destruction tasks to complete */
default void shutdown() {}
}
|