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

com.ld.lucenex.plugin.WebCommonPlugin Maven / Gradle / Ivy

Go to download

Based on JDK 1.8 Lucene 7.x search framework, without affecting the original performance, improve the development efficiency by 80%, reduce the development difficulty by 70%!!!

The newest version!
package com.ld.lucenex.plugin;

import com.ld.lucenex.base.BaseConfig;
import com.ld.lucenex.config.LuceneXConfig;
import com.ld.lucenex.core.ManySource;

import javax.servlet.*;
import java.io.IOException;

/**
 * 通用 web 集成方式
 */
public class WebCommonPlugin implements Filter {

    LuceneXConfig config;

    public WebCommonPlugin(LuceneXConfig config){
        this.config = config;
    }

    @Override
    public void init(FilterConfig filterConfig) throws ServletException {
        BaseConfig.configLuceneX(config);
    }

    @Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {

    }

    @Override
    public void destroy() {
        ManySource.close();
        this.config = null;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy