FileDocCategorySizeDatePackage
UniqueIDGenerator.javaAPI DocGlassfish v2 API2582Fri May 04 22:23:42 BST 2007com.sun.enterprise.management.support

UniqueIDGenerator

public final class UniqueIDGenerator extends Object
Produces a series of unique identifiers which are unique for this instance.

Fields Summary
private int
mID
private final String
mPrefix
Constructors Summary
public UniqueIDGenerator(String prefix)

		mPrefix	= prefix == null ? "" : prefix;
		
		mID	= 0;
	
Methods Summary
public synchronized java.lang.ObjectcreateID()

		++mID;
		return( mPrefix + mID );