Package org.eblocker.server.app
Class DeviceProperties
java.lang.Object
org.eblocker.server.app.DeviceProperties
injectable singleton, which reads a properties file (default:
/etc/eblocker-device.properties
and provides these properties via getter methods.
The purpose of these properties: They should contain information about relevant features that depend on the actual hardware, on which the eBlocker Server is running.
E.g.:
- Is Wifi available?
- Is a HW serial number available?
- Name of the board.
- ...
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBoard()getCase()booleanbooleanbooleanisSerialNumberMatching(String serialNumber) boolean
-
Constructor Details
-
DeviceProperties
-
-
Method Details
-
isSerialNumberAvailable
public boolean isSerialNumberAvailable() -
isWifiAvailable
public boolean isWifiAvailable() -
isRgbLedAvailable
public boolean isRgbLedAvailable() -
getArchitecture
-
getBoard
-
getCase
-
getSerialNumberPattern
-
isSerialNumberMatching
-
getSerialnumberExample
-