All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.yahoo.container.di.ComponentDeconstructor Maven / Gradle / Ivy

// 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 components, Collection bundles);

    /** Wait for all previous destruction tasks to complete */
    default void shutdown() {}

}