javamoney
  1. javamoney
  2. JAVAMONEY-31

Adding two get methods to CurrencyUnitProvider to make the String namespace parameter as default to 'ISO-4217'

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.3
    • Component/s: API
    • Labels:
      None
    • Environment:

      javax.money. interface CurrencyUnitProvider

      Description

      Currently CurrencyUnitProvider provides two get method with parameter (String namespace, String code) and (String namespace, String code, long timestamp). Both these method mostly user need to specify a namespace and code. If we provide a get method without namespace, we can minimize the entry of namespace. The provider can give a default namespace to the API.

      So we can provide two get method as
      public CurrencyUnit get(String code);
      public CurrencyUnit get(String code, long timestamp);

      for the current RI we can can make the namespace to "ISO-4217" as default value.

        Activity

        Rajmahendra Hegde created issue -
        Rajmahendra Hegde made changes -
        Field Original Value New Value
        Tags adoptajsr
        atsticks made changes -
        Assignee atsticks [ atsticks ]
        atsticks made changes -
        Fix Version/s 1.0-b01 [ 16318 ]
        atsticks made changes -
        Issue Type Improvement [ 4 ] New Feature [ 2 ]
        atsticks made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        atsticks made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Fix Version/s 0.3 [ 16322 ]
        Fix Version/s 1.0-b01 [ 16318 ]
        Resolution Fixed [ 1 ]
        atsticks made changes -
        Description Currently CurrencyUnitProvider provides two get method with parameter (String namespace, String code) and (String namespace, String code, long timestamp). Both these method mostly user need to specify a namespace and code. If we provide a get method without namespace, we can minimize the entry of namespace. The provider can give a default namespace to the API.

        So we can provide two get method as
        public CurrencyUnit get(String code);
        public CurrencyUnit get(String code, long timestamp);

        for the current RI we can can make the namespace to "ISO-4217" as default value.
        Currently CurrencyUnitProvider provides two get method with parameter (String namespace, String code) and (String namespace, String code, long timestamp). Both these method mostly user need to specify a namespace and code. If we provide a get method without namespace, we can minimize the entry of namespace. The provider can give a default namespace to the API.

        So we can provide two get method as
        public CurrencyUnit get(String code);
        public CurrencyUnit get(String code, long timestamp);

        for the current RI we can can make the namespace to "ISO-4217" as default value.

        Additionally default namespace can be changed by setting a system property: {{-Djavax.money.defaultCurrencyNamespace=whateverNS}}.

        atsticks made changes -
        Description Currently CurrencyUnitProvider provides two get method with parameter (String namespace, String code) and (String namespace, String code, long timestamp). Both these method mostly user need to specify a namespace and code. If we provide a get method without namespace, we can minimize the entry of namespace. The provider can give a default namespace to the API.

        So we can provide two get method as
        public CurrencyUnit get(String code);
        public CurrencyUnit get(String code, long timestamp);

        for the current RI we can can make the namespace to "ISO-4217" as default value.

        Additionally default namespace can be changed by setting a system property: {{-Djavax.money.defaultCurrencyNamespace=whateverNS}}.

        Currently CurrencyUnitProvider provides two get method with parameter (String namespace, String code) and (String namespace, String code, long timestamp). Both these method mostly user need to specify a namespace and code. If we provide a get method without namespace, we can minimize the entry of namespace. The provider can give a default namespace to the API.

        So we can provide two get method as
        public CurrencyUnit get(String code);
        public CurrencyUnit get(String code, long timestamp);

        for the current RI we can can make the namespace to "ISO-4217" as default value.

        Rajmahendra Hegde made changes -
        Tags adoptajsr adoptajsr jugchennai
        atsticks made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            atsticks
            Reporter:
            Rajmahendra Hegde
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: