DefaultNamingPolicy, modifying the tag
in generated class names from "EnhancerByCGLIB" etc to a "SpringCGLIB" tag
and using a plain counter suffix instead of a hash code suffix (as of 6.0).
This allows for reliably discovering pre-generated Spring proxy classes in the classpath.
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| public static final SpringNamingPolicy | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public String | getClassName(String
a dotted-name chosen by the generating class (possibly to put the generated class in a particular package) prefix, String the fully-qualified class name of the generating class (for example "org.springframework.cglib.Enhancer") source, Object A key object representing the state of the parameters; for caching to work properly, equal keys should result
in the same generated class name. The default policy incorporates key, Predicate key.hashCode() into the class name.a predicate that returns true if the given classname has already been used in the same ClassLoader. names)Implements org. |
| FAST_CLASS_SUFFIX | back to summary |
|---|---|
| private static final String FAST_CLASS_SUFFIX | |
| INSTANCE | back to summary |
|---|---|
| public static final SpringNamingPolicy INSTANCE | |
| SPRING_LABEL | back to summary |
|---|---|
| private static final String SPRING_LABEL | |
| SpringNamingPolicy | back to summary |
|---|---|
| private SpringNamingPolicy() | |
| getClassName | back to summary |
|---|---|
| public String getClassName(String prefix, String source, Object key, Predicate names) Implements org. Doc from org. Choose a name for a generated class.
| |