Hi,

Joda-Time supports only a few Chronologies.

Here http://joyds1.joensuu.fi/calendar/index.html someone implemented a lot of 
different calendars. I wonder if it would be possible to write a generic 
wrapper allowing you the create a Joda Chronology out of them. Something 
looking like this

import fi.joensuu.joyds1.calendar.Calendar;
import org.joda.time.Chronology;

class ChronoWrapper implements Chronology {

 private Calendar calendarsInstance;

 public ChronologyWrapper(Calendar calendarsInstance) 
{
  this.calendarsInstance=calendarsInstance;
}

 ...Chronology methods delegating to calendarsInstance...
}

Yet I got dizzy when I just looked at Jodas Chonology and BuddhistChronology 
to try to understand how to implement such a Chonology: the two classes 
import each other.

Does this straightly rule out, that you can build such a wrapper?

Also, is there a good "How to implement a Joda-Time Chronology" document?

claudio
-- 
Claudio Nieder, Kanalweg 1, CH-8610 Uster, Tel +41 79 357 6743
yahoo messenger: claudionieder aim: claudionieder icq:42315212
mailto:[EMAIL PROTECTED]                http://www.claudio.ch

Attachment: pgpPrqjYTJuXt.pgp
Description: PGP signature

Reply via email to