All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.arextest.diff.factory.PluginServiceFactory Maven / Gradle / Ivy

There is a newer version: 0.2.15
Show newest version
package com.arextest.diff.factory;

import com.arextest.diff.plugin.LogEntityFilter;
import java.util.ArrayList;
import java.util.List;
import java.util.ServiceLoader;

/**
 * Created by rchen9 on 2023/4/24.
 */
public class PluginServiceFactory {

  private static List logEntityFilterList = new ArrayList<>();

  static {
    try {
      ServiceLoader serviceLoader = ServiceLoader.load(LogEntityFilter.class);
      for (LogEntityFilter service : serviceLoader) {
        logEntityFilterList.add(service);
      }
    } catch (Throwable ignored) {
    }
  }

  public static List getLogEntityFilterList() {
    return logEntityFilterList;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy