You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devicemap.apache.org by "Reza Naghibi (JIRA)" <ji...@apache.org> on 2014/07/28 16:06:40 UTC

[jira] [Resolved] (DMAP-52) Create DeviceMapClient static factory method

     [ https://issues.apache.org/jira/browse/DMAP-52?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Reza Naghibi resolved DMAP-52.
------------------------------

       Resolution: Fixed
    Fix Version/s: 1.1.0 Java

Created DeviceMapFactory

> Create DeviceMapClient 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
>             Fix For: 1.1.0 Java
>
>
> 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)