You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devicemap.apache.org by "Werner Keil (JIRA)" <ji...@apache.org> on 2014/07/25 22:00:39 UTC

[jira] [Created] (DMAP-52) Could DeviceMapClient be created via static factory method

Werner Keil created DMAP-52:
-------------------------------

             Summary: Could DeviceMapClient be created via static factory method
                 Key: DMAP-52
                 URL: https://issues.apache.org/jira/browse/DMAP-52
             Project: DeviceMap
          Issue Type: Improvement
            Reporter: Werner Keil
            Assignee: Bertrand Delacretaz


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.



--
This message was sent by Atlassian JIRA
(v6.2#6252)