类 Instantiator<T>

java.lang.Object
cn.taketoday.util.Instantiator<T>
类型参数:
T - the type to instantiate

public class Instantiator<T> extends Object
Simple factory used to instantiate objects by injecting available parameters.
从以下版本开始:
4.0 2022/2/18 10:53
作者:
Phillip Webb, Harry Yang
  • 构造器详细资料

  • 方法详细资料

    • instantiate

      public List<T> instantiate(Collection<String> names)
      Instantiate the given set of class name, injecting constructor arguments as necessary.
      参数:
      names - the class names to instantiate
      返回:
      a list of instantiated instances
    • instantiate

      public List<T> instantiate(@Nullable ClassLoader classLoader, Collection<String> names)
      Instantiate the given set of class name, injecting constructor arguments as necessary.
      参数:
      classLoader - the source classloader
      names - the class names to instantiate
      返回:
      a list of instantiated instances
    • instantiateTypes

      public List<T> instantiateTypes(Collection<Class<?>> types)
      Instantiate the given set of classes, injecting constructor arguments as necessary.
      参数:
      types - the types to instantiate
      返回:
      a list of instantiated instances