接口的使用
cn.taketoday.lang.ClassInstantiator
使用ClassInstantiator的程序包
-
cn.taketoday.lang中ClassInstantiator的使用
修饰符和类型类说明(专用程序包) static final classInternal instantiator used to create the strategy instance.参数类型为ClassInstantiator的cn.taketoday.lang中的方法修饰符和类型方法说明static <T> List<T>TodayStrategies.find(Class<T> strategyType, ClassInstantiator instantiator) Load and instantiate the strategy implementations of the given type from "META-INF/today.strategies", using the given class loader.static <T> List<T>TodayStrategies.find(Class<T> strategyType, ClassLoader classLoader, ClassInstantiator instantiator) Load and instantiate the strategy implementations of the given type from "META-INF/today.strategies", using the given class loader.protected <T> TTodayStrategies.instantiateStrategy(String implementationName, Class<T> type, ClassInstantiator instantiator, TodayStrategies.FailureHandler failureHandler) <T> List<T>TodayStrategies.load(Class<T> strategyType, ClassInstantiator instantiator) Load and instantiate the strategy implementations of the given type from "META-INF/today.strategies", using the configured class loader and the given argument resolver.<T> List<T>TodayStrategies.load(Class<T> strategyType, ClassInstantiator instantiator, TodayStrategies.FailureHandler failureHandler) Load and instantiate the strategy implementations of the given type from "META-INF/today.strategies", using the configured class loader, the given argument resolver, and custom failure handling provided by the given failure handler.