Package link.checker.persist.api

Examples of link.checker.persist.api.ResourceDao


    public static final String RESOURCE_DAO = "resourceDao";

    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {

        ResourceDao resourceDao = (ResourceDao) context.getJobDetail().getJobDataMap().get(RESOURCE_DAO);

        JavaJingScraper javaJingScraper = new JavaJingScraper();

        List<Resource> resources = javaJingScraper.checkEpisodePageLinks();

        for(Resource resource : resources) {

            resourceDao.create(resource);

        }
    }
View Full Code Here


     * @param args
     */
    public static void main(String[] args) throws SchedulerException {

        ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext("META-INF/spring/link-checker.xml");
        ResourceDao resourceDao = (ResourceDao) applicationContext.getBean("resourceDao");

        JavaJingChecker javaJingChecker = new JavaJingChecker(resourceDao);

        if(args.length > 0) {

View Full Code Here

TOP

Related Classes of link.checker.persist.api.ResourceDao

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.