public class UniqueMemberNameFactory extends Object implements NameFactory
| Constructor and Description |
|---|
UniqueMemberNameFactory(NameFactory delegateNameFactory,
Clazz clazz)
Creates a new UniqueMemberNameFactory.
|
| Modifier and Type | Method and Description |
|---|---|
static UniqueMemberNameFactory |
newInjectedMemberNameFactory(Clazz clazz)
Utility for creating a new NameFactory that can generate names for injected
members: the generated names are unique within the given class, and don't
clash with non-injected members of its super classes.
|
String |
nextName() |
void |
reset() |
public UniqueMemberNameFactory(NameFactory delegateNameFactory, Clazz clazz)
delegateNameFactory - the delegate NameFactory, used for generating
new candidate names.clazz - the class in which to check for existing
member names.public static UniqueMemberNameFactory newInjectedMemberNameFactory(Clazz clazz)
clazz - the class for which to generate a NameFactory.public String nextName()
nextName in interface NameFactorypublic void reset()
reset in interface NameFactoryCopyright © 2019. All rights reserved.