类 NamingPolicy.InfraNamingPolicy

java.lang.Object
cn.taketoday.bytecode.core.NamingPolicy.InfraNamingPolicy
所有已实现的接口:
NamingPolicy
封闭接口:
NamingPolicy

public static class NamingPolicy.InfraNamingPolicy extends Object implements NamingPolicy
  • 字段详细资料

  • 构造器详细资料

    • InfraNamingPolicy

      public InfraNamingPolicy()
  • 方法详细资料

    • getClassName

      public String getClassName(String prefix, String source, Object key, Predicate<String> names)
      从接口复制的说明: NamingPolicy
      Choose a name for a generated class.
      指定者:
      getClassName 在接口中 NamingPolicy
      参数:
      prefix - a dotted-name chosen by the generating class (possibly to put the generated class in a particular package)
      source - the class simple name of the generating class
      key - A key object representing the state of the parameters; for caching to work properly, equal keys should result in the same generated class name. The default policy incorporates key.hashCode() into the class name.
      names - a predicate that returns true if the given classname has already been used in the same ClassLoader.
      返回:
      the fully-qualified class name