spring-framework / org.springframework.cglib.core / SpringNamingPolicy

SpringNamingPolicy

open class SpringNamingPolicy : DefaultNamingPolicy

Custom extension of CGLIB's DefaultNamingPolicy, modifying the tag in generated class names from "ByCGLIB" to "BySpringCGLIB".

This is primarily designed to avoid clashes between a regular CGLIB version (used by some other library) and Spring's embedded variant, in case the same class happens to get proxied for different purposes.

Author
Juergen Hoeller

Since
3.2.8

Constructors

<init>

SpringNamingPolicy()

Custom extension of CGLIB's DefaultNamingPolicy, modifying the tag in generated class names from "ByCGLIB" to "BySpringCGLIB".

This is primarily designed to avoid clashes between a regular CGLIB version (used by some other library) and Spring's embedded variant, in case the same class happens to get proxied for different purposes.

Properties

INSTANCE

static val INSTANCE: SpringNamingPolicy