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:02:39 UTC
[jira] [Updated] (DMAP-52) Could DeviceMapClient be created via
static factory method
[ https://issues.apache.org/jira/browse/DMAP-52?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Werner Keil updated DMAP-52:
----------------------------
Component/s: Java API
> 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
> Components: Java API
> Reporter: Werner Keil
> Assignee: Reza Naghibi
> Labels: design, pattern, singleton
>
> 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)