Interface IServiceFactory

All Known Implementing Classes:
DefaultServiceFactory, SpringServiceFactory

public interface IServiceFactory
服务工厂接口
Author:
wangliang181230
  • Method Summary

    Modifier and Type
    Method
    Description
    <S> S
    create(ExtensionDefinition definition, Class<S> type, Class<?>[] argTypes, Object[] args)
    创建服务实例
  • Method Details

    • create

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