Package org.springframework.util
Class AlternativeJdkIdGenerator
java.lang.Object
org.springframework.util.AlternativeJdkIdGenerator
- All Implemented Interfaces:
- IdGenerator
An 
IdGenerator that uses SecureRandom for the initial seed and
 Random thereafter, instead of calling UUID.randomUUID() every
 time as JdkIdGenerator does.
 This provides a better balance between securely random ids and performance.- Since:
- 4.0
- Author:
- Rossen Stoyanchev, Rob Winch
- 
Constructor SummaryConstructors
- 
Method Summary
- 
Constructor Details- 
AlternativeJdkIdGeneratorpublic AlternativeJdkIdGenerator()
 
- 
- 
Method Details- 
generateIdDescription copied from interface:IdGeneratorGenerate a new identifier.- Specified by:
- generateIdin interface- IdGenerator
- Returns:
- the generated identifier
 
 
-