Class DefaultServiceFactory

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

public class DefaultServiceFactory extends Object implements IServiceFactory
服务工厂类 的 默认实现
Author:
wangliang181230
  • Constructor Details

    • DefaultServiceFactory

      public DefaultServiceFactory()
  • Method Details

    • create

      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:
      服务实例,允许为空;为空时,由默认服务工厂生成实例。