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

com.javaoffers.batis.modelhelper.utils.InterceptorLoader Maven / Gradle / Ivy

There is a newer version: 3.5.11.12
Show newest version
package com.javaoffers.batis.modelhelper.utils;

import com.javaoffers.batis.modelhelper.interceptor.JqlInterceptor;

import java.util.ArrayList;
import java.util.List;
import java.util.ServiceLoader;

/**
 *
 */
public class InterceptorLoader {

    private static final  ArrayList jqlInterceptorsList = Lists.newArrayList();

    public static synchronized List loadJqlInterceptor(){
        ServiceLoader load = ServiceLoader.load(JqlInterceptor.class);
        if(load != null && jqlInterceptorsList.size() == 0){
            for(JqlInterceptor jqlInterceptor : load){
                jqlInterceptorsList.add(jqlInterceptor);
            }
        }
        return jqlInterceptorsList;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy