improved auto start comments and log

This commit is contained in:
Ziver Koc 2017-01-16 17:09:08 +01:00
parent f2e940cda1
commit 44d5fa0227
2 changed files with 4 additions and 3 deletions

View file

@ -358,7 +358,7 @@ public class ControllerManager implements HalSensorReportListener,
controller = c.newInstance(); controller = c.newInstance();
if (controller instanceof HalAutoScannableController && if (controller instanceof HalAutoScannableController &&
! ((HalAutoScannableController)controller).isAvailable()) { ! ((HalAutoScannableController)controller).isAvailable()) {
logger.warning("Controller is not available: "+c.getName()); logger.warning("Controller is not ready: "+c.getName());
return null; return null;
} }
logger.info("Instantiating new controller: " + c.getName()); logger.info("Instantiating new controller: " + c.getName());

View file

@ -1,13 +1,14 @@
package se.hal.intf; package se.hal.intf;
/** /**
* Created by ezivkoc on 2016-05-25. * A interface that indicates that the implementing
* controller can be auto started when HalServer starts up.
*/ */
public interface HalAutoScannableController { public interface HalAutoScannableController {
/** /**
* Indicates if the controller has all the configuration * Indicates if the controller has all the configuration
* data and resources to be able to initialize * data and resources needed to be able to initialize correctly
*/ */
boolean isAvailable(); boolean isAvailable();
} }