org.springframework.cglib.core

## Class SpringNamingPolicy

- java.lang.Object
- - org.springframework.cglib.core.DefaultNamingPolicy
  - - org.springframework.cglib.core.SpringNamingPolicy

- All Implemented Interfaces:
    org.springframework.cglib.core.NamingPolicy

      public class SpringNamingPolicy
      extends org.springframework.cglib.core.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.

  Since:
    3.2.8
  Author:
    Juergen Hoeller

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static SpringNamingPolicy` | `INSTANCE`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `SpringNamingPolicy()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected String` | `getTag()`

    - ### Methods inherited from class org.springframework.cglib.core.DefaultNamingPolicy

      `equals, getClassName, hashCode`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### INSTANCE

          public static final SpringNamingPolicy INSTANCE

  - ### Constructor Detail

    - #### SpringNamingPolicy

          public SpringNamingPolicy()

  - ### Method Detail

    - #### getTag

          protected String getTag()

      Overrides:
        `getTag` in class `org.springframework.cglib.core.DefaultNamingPolicy`