Save This Page
Home » cglib-src-2.2 » net.sf.cglib.core » [javadoc | source]
public class: DefaultNamingPolicy [javadoc | source]

All Implemented Interfaces:

The default policy used by AbstractClassGenerator . Generates names such as


This is composed of a prefix based on the name of the superclass, a fixed string incorporating the CGLIB class responsible for generation, and a hashcode derived from the parameters used to create the object. If the same name has been previously been used in the same ClassLoader, a suffix is added to ensure uniqueness.
Field Summary
public static final  DefaultNamingPolicy INSTANCE     
Method from net.sf.cglib.core.DefaultNamingPolicy Summary:
getClassName,   getTag
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from net.sf.cglib.core.DefaultNamingPolicy Detail:
 public String getClassName(String prefix,
    String source,
    Object key,
    Predicate names) 
 protected String getTag() 
    Returns a string which is incorporated into every generated class name. By default returns "ByCGLIB"