Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Util methods for registrate service #136

Open
muuki88 opened this issue Sep 21, 2012 · 0 comments
Open

Util methods for registrate service #136

muuki88 opened this issue Sep 21, 2012 · 0 comments
Assignees
Milestone

Comments

@muuki88
Copy link
Member

muuki88 commented Sep 21, 2012

Create a util class or methods in AbstractSensor for easy registration.

String[] driverClasses = new String[] { ISensorDriver.class.getName(), Driver.class.getName() };
String[] sensorClasses = new String[] { ISensor.class.getName(), Device.class.getName() };

ISensor sensor = new MySensor();
Dictionary<String, Object> sensorProps = new Hashtable<>();
sensorProps.put(Constants.DEVICE_CATEGORY, sensor.getCategory());
sensorProps.put(Constants.DEVICE_DESCRIPTION, sensor.getDescription());
@ghost ghost assigned muuki88 Sep 21, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant