J?rg Schaible wrote:
> 8/ Prefix generators
>
> We have 3 generators, that add a prefix to the generated id. All 3 classes
> to mainly the same for 3 different StringIdentifierGenerators.
>
> Proposal: Since we have a lot more StringIdentifierGenrators (e.g. the
> UUIDIdentifierGenerators a StringIdentifiers too), I would refactore this 3
> classes into a wrapper in a separate package o.a.c.id.wrapper and delegate
> to an arbitrary StringIdentifierGenerator implementation:
>
> class PrefixStringIdentifierGenerator implements StringIdentifierGenerator {
> PrefixStringIdentifierGenerator(StringIdentifierGenerator delegee) {
> this.delegee = delegee;
> }
> ...
> }
How about a single class CompoundStringIdentifierGenerator that can use
the delegate as any one of prefix, middle, postfix?
And may I add
10/ Serial generators implement Serializable?
michael
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]