Package com.log4ic.utils.support.scanner.filter

Examples of com.log4ic.utils.support.scanner.filter.AnnotationFilter


public class DataBaseSupport implements ServletContextListener {
    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("查看是否建表....");
            for (Class clazz : entityClassList) {
                DocViewerJdbcSupport support = (DocViewerJdbcSupport) clazz.newInstance();
View Full Code Here

TOP

Related Classes of com.log4ic.utils.support.scanner.filter.AnnotationFilter

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.