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

All Implemented Interfaces:
    NamingPolicy

The default policy used by AbstractClassGenerator . Generates names such as

net.sf.cglib.Foo$$EnhancerByCGLIB$$38272841

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"