public static class ByteBuddyUtils.InjectPackageStrategy extends NamingStrategy.AbstractBase
We always inject the generator classes in the same same package as the user's target class. This way, if the class fields or methods are package private, our generated class can still access them.
NamingStrategy.AbstractBase, NamingStrategy.PrefixingRandom, NamingStrategy.Suffixing, NamingStrategy.SuffixingRandom
BYTE_BUDDY_RENAME_PACKAGE, NO_PREFIX
Constructor and Description |
---|
InjectPackageStrategy(java.lang.Class<?> baseType) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
name(TypeDescription superClass) |
rebase, redefine, subclass
protected java.lang.String name(TypeDescription superClass)
name
in class NamingStrategy.AbstractBase