public interface NamingStrategy
Note that subclasses that lie within the same package as their superclass have improved access to overriding package-private methods of their super type.
Modifier and Type | Interface and Description |
---|---|
static class |
NamingStrategy.Fixed
A naming strategy that applies a fixed name.
|
static class |
NamingStrategy.PrefixingRandom
A naming strategy that creates a name by prefixing a given class and its package with another package and
by appending a random number to the class's simple name.
|
static class |
NamingStrategy.SuffixingRandom
A naming strategy that creates a name by concatenating:
The super classes package and name
A given suffix string
A random number
Between all these elements, a
$ sign is included into the name to improve readability. |
static interface |
NamingStrategy.Unbound
An unbound
NamingStrategy where the actual naming strategy is still to be determined
in dependency of whether a type is to be subclasses, redefined or rebased. |
static interface |
NamingStrategy.UnnamedType
An description of a type which is to be named.
|
Modifier and Type | Method and Description |
---|---|
String |
name(NamingStrategy.UnnamedType unnamedType)
Generates a fully qualified name for a Java type.
|
String name(NamingStrategy.UnnamedType unnamedType)
java.lang
package since such types cannot be loaded using a normal class loader. Also, the name should not yet be taken
by another type since this would cause conflicts in the name space. Therefore, it is recommendable to include
a random sequence within the name.unnamedType
- An unnamed type that is to be named.Copyright © 2014–2015. All rights reserved.