@Service(value="blCreditAccountNumberGenerator") public class CreditAccountNumberGeneratorImpl extends Object implements CreditAccountNumberGenerator, org.springframework.beans.factory.InitializingBean
Modifier and Type | Field and Description |
---|---|
protected char[] |
chars |
protected CreditAccountService |
creditAccountService
Services
|
protected Integer |
length |
protected SecureRandom |
random |
Constructor and Description |
---|
CreditAccountNumberGeneratorImpl() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
String |
generateAccountNumber()
Generates a new unique number.
|
protected CreditAccountService creditAccountService
protected SecureRandom random
protected char[] chars
protected Integer length
public String generateAccountNumber()
CreditAccountNumberGenerator
generateAccountNumber
in interface CreditAccountNumberGenerator
Copyright © 2019. All rights reserved.