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

io.mateu.mdd.springboot.JavassistConfigurerBean Maven / Gradle / Ivy

There is a newer version: 1.1.60
Show newest version
package io.mateu.mdd.springboot;

import io.mateu.mdd.core.MDD;
import javassist.ClassPool;
import javassist.LoaderClassPath;
import org.springframework.boot.web.servlet.ServletRegistrationBean;
import org.springframework.context.ApplicationContext;
import org.springframework.stereotype.Service;

@Service
public class JavassistConfigurerBean extends ServletRegistrationBean {

    public JavassistConfigurerBean(ApplicationContext ctx) {
        super(new FakeServlet(), "/uhdhediuwhediuwheduhweduiwheduhwed");
        System.out.println("hola!!!!!");
        final ClassPool pool = ClassPool.getDefault();
        pool.appendClassPath(new LoaderClassPath(ctx.getClassLoader()));
        MDD.setClassPool(pool);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy