Skip to content
This repository has been archived by the owner on Jul 13, 2020. It is now read-only.

Commit

Permalink
adapt to renamed package in infrautils
Browse files Browse the repository at this point in the history
  • Loading branch information
vorburger committed Oct 11, 2018
1 parent f883836 commit bd6abe5
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,22 @@
import com.google.inject.AbstractModule;
import org.opendaylight.infrautils.inject.PostFullSystemInjectionListener;
import org.opendaylight.infrautils.ready.SystemReadyMonitor;
import org.opendaylight.infrautils.ready.impl.SystemReadyImpl;
import org.opendaylight.infrautils.ready.spi.SimpleSystemReadyMonitor;
import org.ops4j.pax.cdi.api.OsgiService;

public class ReadyWiring extends AbstractModule implements PostFullSystemInjectionListener {

private final SystemReadyImpl systemReadyImpl = new SystemReadyImpl();
private final SimpleSystemReadyMonitor systemReadyMonitor = new SimpleSystemReadyMonitor();

@Override
protected void configure() {
bind(SystemReadyMonitor.class).toInstance(systemReadyImpl);
bind(SystemReadyMonitor.class).annotatedWith(OsgiService.class).toInstance(systemReadyImpl);
bind(SystemReadyMonitor.class).toInstance(systemReadyMonitor);
bind(SystemReadyMonitor.class).annotatedWith(OsgiService.class).toInstance(systemReadyMonitor);
bind(PostFullSystemInjectionListener.class).toInstance(this);
}

@Override
public void onFullSystemInjected() {
systemReadyImpl.ready();
systemReadyMonitor.ready();
}

}

0 comments on commit bd6abe5

Please sign in to comment.