use of org.opendaylight.infrautils.ready.SystemState in project infrautils by opendaylight.
the class DiagStatusTestModule method configureBindings.
@Override
protected void configureBindings() throws UnknownHostException {
bind(DiagStatusService.class).to(DiagStatusServiceImpl.class);
bind(new TypeLiteral<List<ServiceStatusProvider>>() {
}).toInstance(Collections.emptyList());
bind(SystemReadyMonitor.class).annotatedWith(OsgiService.class).toInstance(new SystemReadyMonitor() {
@Override
public void registerListener(SystemReadyListener listener) {
// NOOP
}
@Override
public SystemState getSystemState() {
return SystemState.ACTIVE;
}
});
bind(DiagStatusServiceMBean.class).to(DiagStatusServiceMBeanImpl.class);
}
Aggregations