com.sdm.quasar.client.core.dialog.impl
Class DefaultInstanceIdGenerator

java.lang.Object
  extended bycom.sdm.quasar.client.core.dialog.impl.DefaultInstanceIdGenerator
All Implemented Interfaces:
InstanceIdGenerator

public class DefaultInstanceIdGenerator
extends java.lang.Object
implements InstanceIdGenerator

Generates pseudo random instance ids by using a unique instance number and Random.

Version:
1.0
Author:
Bernd Olleck, sd&m AG

Constructor Summary
DefaultInstanceIdGenerator()
          Constructor.
 
Method Summary
 java.lang.String getNewUniqueInstanceId()
          Returns a new, unique instance id.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultInstanceIdGenerator

public DefaultInstanceIdGenerator()
Constructor.

Method Detail

getNewUniqueInstanceId

public java.lang.String getNewUniqueInstanceId()
Description copied from interface: InstanceIdGenerator
Returns a new, unique instance id.

Note: the implementation of this method must be threadsafe.

Specified by:
getNewUniqueInstanceId in interface InstanceIdGenerator
Returns:
a new, unique instance id.