Package com.log4ic.utils.io.scanner

Examples of com.log4ic.utils.io.scanner.FileScanner


    private static final Log LOGGER = LogFactory.getLog(DataBaseSupport.class);

    public void contextInitialized(ServletContextEvent servletContextEvent) {
        LOGGER.info("初始化实体表....");
        AnnotationFilter annotationFilter = new AnnotationFilter();
        FileScanner fileScanner = new FileScanner(annotationFilter);
        LOGGER.info("查找相关实体....");
        fileScanner.find("com.log4ic.entity");

        List<Class> entityClassList = annotationFilter.getClassList();

        try {
            LOGGER.info("查看是否建表....");
View Full Code Here


    public List<Class> getClassList() {
        return classList;
    }

    public static void main(String[] args) {
        FileScanner fileScanner = new FileScanner(new AnnotationFilter());
        List<URL> list = fileScanner.find("com.log4ic.entity");
        for (URL url : list) {
            System.out.println(url.getPath());
        }
    }
View Full Code Here

TOP

Related Classes of com.log4ic.utils.io.scanner.FileScanner

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.