Package us.codecraft.webmagic.model

Examples of us.codecraft.webmagic.model.DynamicClass


    @Test
    @Transactional
    @Rollback(true)
    public void testAdd() throws Exception {
        DynamicClass dynamicClass = new DynamicClass();
        dynamicClass.setClassName("test");
        dynamicClass.setSourceCode("testSource");
        dynamicClassDao.add(dynamicClass);
    }
View Full Code Here


            forger = forgerFactory.compile(sourceCode);
        } catch (CompilationFailedException e) {
            throw new DynamicClassCompileException(e.getMessage(),e);
        }
        String className = forger.getClazz().getCanonicalName();
        DynamicClass dynamicClass = new DynamicClass();
        dynamicClass.setClassName(className);
        dynamicClass.setSourceCode(sourceCode);
        dynamicClassDao.add(dynamicClass);
        return forger.getClazz();
    }
View Full Code Here

TOP

Related Classes of us.codecraft.webmagic.model.DynamicClass

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.