3.0.0 finally completed, released, see http://wiki.fasterxml.com/JugDownload

56 views
Skip to first unread message

Tatu Saloranta

unread,
Oct 12, 2010, 8:29:22 PM10/12/10
to java-uuid-ge...@googlegroups.com
Ok: I finally went back to completing Java Uuid Generator version 3.0,
and results are now downloadable and/or accessible using Maven (group
'com.fasterxml.uuid', artifact 'java-uuid-generator').

Functionality has not changed, but most everything else has. Beyond
new maven group id and java package (com.fasterxml.uuid.*) here are
main things:

- java.util.UUID is now used instead of custom UUID type (as a result,
JDK 1.4 is the strict minimum requirement)
- instead of static singleton UUIDGenerator, main access point now is
com.fasterxml.uuid.Generators; so you instantiate suitable UUID
generator:

NameBasedGenerator nameGen = Generators.nameBasedGenerator(); // or
with optional configuration

and then generate UUIDs using generator:

UUID uuid = nameGen.generate("http://fasterxml.com")

- EthernetAddress class has methods to not only construct bogus
broadcast address (in cases where no NICs are available); but also
EthernetAddress.fromInterface() which fill finally allow accessing
Ethernet address (for type 1 generation) without native code -- when
used, JDK 1.6 is needed, since that's when underlying functionality
came available.
- Jar file is also an OSGi bundle to make it bit more convenient to
use on OSGi container
- All generators are fully-thread safe without additional
synchronization; and you can still impose stricter limites (file-based
locking to prevent multiple Jugs, on other JVMs), as before (using
TimestampSynchronizer / UUIDTimer)

Let me know what you think,

-+ Tatu +-

Reply all
Reply to author
Forward
0 new messages