Uploaded image for project: 'DeviceMap'
  1. DeviceMap
  2. DMAP-52

Create DeviceMapClient static factory method

    XMLWordPrintableJSON

Details

    Description

      The console example refers to initDeviceData() that it should only be called once.
      //load the device data, do this only once!!!
      client.initDeviceData(LoaderOption.JAR);

      If there is never or rarely a need to call it again, could the DeviceMapClient class not get a static factory/constructor method like
      DeviceMapClient.of(LoaderOption) or something like that?

      The of() notion is quite popular recently, but any variation like valueOf() or getInstance() might work, too.

      Attachments

        Activity

          People

            rezan Reza Naghibi
            wkeil Werner Keil
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: