Class SpringServiceFactory

java.lang.Object
icu.easyj.core.loader.factory.impls.SpringServiceFactory
All Implemented Interfaces:
IServiceFactory

public class SpringServiceFactory extends Object implements IServiceFactory
服务工厂 的 Spring实现
Author:
wangliang181230
  • Constructor Details

    • SpringServiceFactory

      public SpringServiceFactory()
  • Method Details

    • create

      @Nullable public <S> S create(ExtensionDefinition definition, Class<S> type, Class<?>[] argTypes, Object[] args)
      Description copied from interface: IServiceFactory
      创建服务实例
      Specified by:
      create in interface IServiceFactory
      Type Parameters:
      S - 服务类
      Parameters:
      definition - 服务扩展定义
      type - 服务类型
      argTypes - 参数类型数组
      args - 参数数组
      Returns:
      服务实例,允许为空;为空时,由默认服务工厂生成实例。