Class DeviceProperties

java.lang.Object
org.eblocker.server.app.DeviceProperties

public class DeviceProperties extends Object
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 Details

    • DeviceProperties

      @Inject public DeviceProperties(String devicePropertiesPath)
  • Method Details

    • isSerialNumberAvailable

      public boolean isSerialNumberAvailable()
    • isWifiAvailable

      public boolean isWifiAvailable()
    • isRgbLedAvailable

      public boolean isRgbLedAvailable()
    • getArchitecture

      @Nonnull public String getArchitecture()
    • getBoard

      @Nonnull public String getBoard()
    • getCase

      @Nonnull public String getCase()
    • getSerialNumberPattern

      @Nonnull public String getSerialNumberPattern()
    • isSerialNumberMatching

      public boolean isSerialNumberMatching(String serialNumber)
    • getSerialnumberExample

      @Nonnull public String getSerialnumberExample()