Skip to main content

[JSR-354] Re: Extending Regions with additional data.

  • From: Anatole Tresch <atsticks@...>
  • To: Jsr 354 JavaMoney Public Mailinglist <jcurrency_mail@...>
  • Subject: [JSR-354] Re: Extending Regions with additional data.
  • Date: Tue, 3 Sep 2013 09:51:52 +0200

I think even more flexible would be add the methods to the Regions singleton 
(adding the Region as parameter), so arbitrary Region related data can be 
provided by independent ExtendedRegionDataProviderSpi impls:

public static Collection<Class> getExtendedRegionDataTypes(Region region); 
public static <T> T getExtendedRegionData(Class<T> type);

Cheers
Anatole

-
Anatole Tresch
Gl√§rnischweg 10
8620 Wetzikon
Tel +41 (43) 317 05 30
-
Send from Mobile

Am 31.08.2013 um 08:49 schrieb Anatole Tresch <atsticks@...>:

> public <T> Class<T> getAdditionalDataType(); 
>    // may return null, if not supported
> 
> public <T> T getAdditionalData(Class<T> type);


[JSR-354] Re: Extending Regions with additional data.

Anatole Tresch 09/03/2013

[JSR-354] Re: Extending Regions with additional data.

Werner Keil 09/10/2013
 
 
Close
loading
Please Confirm
Close