org.apache.camel.util
Class UuidGenerator

java.lang.Object
  extended by org.apache.camel.util.UuidGenerator

public class UuidGenerator
extends Object

Generator for Globally unique Strings.


Method Summary
 String generateUuid()
          Generates a UUID string representation.
static UuidGenerator get()
          Returns a UUID generator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

get

public static UuidGenerator get()
Returns a UUID generator. The instance returned by this method makes use of UUID.randomUUID() for generating UUIDs. Other generation strategies are currently not supported (but maybe added in future versions).

Returns:
a UUID generator singleton.

generateUuid

public String generateUuid()
Generates a UUID string representation.

Returns:
a UUID string.


Copyright © 2007-2010 The Apache Software Foundation. All Rights Reserved.