org.apache.ws.addressing.uuid
Class JugUUIdGenerator

java.lang.Object
  extended by org.apache.ws.addressing.uuid.JugUUIdGenerator
All Implemented Interfaces:
UUIdGenerator

public class JugUUIdGenerator
extends java.lang.Object
implements UUIdGenerator

A UUIdGenerator implementation that uses JUG, an open source Java UUID generation library. Reflection is utilized to avoid a compile-time dependency on jug.jar.

Author:
Ian P. Springer, Rodrigo Ruiz

Constructor Summary
JugUUIdGenerator()
          Creates an instance.
 
Method Summary
 java.lang.String generateUUId()
          Generate a Universally Unique IDentifier (UUID).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JugUUIdGenerator

public JugUUIdGenerator()
Creates an instance.

Method Detail

generateUUId

public java.lang.String generateUUId()
Generate a Universally Unique IDentifier (UUID).

IMPORTANT: This method must be thread-safe.

Specified by:
generateUUId in interface UUIdGenerator
Returns:
a Universally Unique IDentifier (UUID)


Copyright © 2008-2009 Rodrigo Ruiz. All Rights Reserved.