类 ExternalServiceFactory


  • public class ExternalServiceFactory
    extends Object
    External service factory.
    从以下版本开始:
    2024-03-08
    作者:
    SHOUSHEN.LUAN
    • 构造器详细资料

      • ExternalServiceFactory

        public ExternalServiceFactory()
    • 方法详细资料

      • register

        public static void register​(Class<?> serviceInterface)
        Register service.
        参数:
        serviceInterface - service interface
      • getServiceInstances

        public static <T> Collection<T> getServiceInstances​(Class<T> serviceInterface)
        Get service instances.
        类型参数:
        T - type of service
        参数:
        serviceInterface - service interface
        返回:
        service instances
      • getFirstServiceInstance

        public static <T> Optional<T> getFirstServiceInstance​(Class<T> serviceInterface)
        Get first service instances.
        类型参数:
        T - type of service
        参数:
        serviceInterface - service interface
        返回:
        service instances