@Activate public void activate() { log.trace("Initializing stock commissioning systems."); IStatus status = StockCommissioningSystemService.INSTANCE.initializeAllInstances(); if (!status.isOK()) { StatusUtil.logStatus(log, status, true); } }
public void unbind(ICommissioningSystemDriverFactory driverFactory) { log.debug("Unbinding " + driverFactory.getClass().getName()); log.info( "Shutting down stock commissioning systems for driver id [{}]", driverFactory.getIdentification().toString()); IStatus status = StockCommissioningSystemService.INSTANCE.shutdownInstancesUsingDriver( driverFactory.getIdentification()); if (!status.isOK()) { StatusUtil.logStatus(log, status, true); } driverFactories.remove(driverFactory.getIdentification()); }