net.sf.cglib.core

Class DefaultNamingPolicy

public class DefaultNamingPolicy extends Object implements 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
static DefaultNamingPolicyINSTANCE
Method Summary
StringgetClassName(String prefix, String source, Object key, Predicate names)

Field Detail

INSTANCE

public static final DefaultNamingPolicy INSTANCE

Method Detail

getClassName

public String getClassName(String prefix, String source, Object key, Predicate names)
Copyright (c) 2001 - Apache Software Foundation