guzz程序的核心为GuzzContext对象,完成GuzzContext的初始化并获取其引用,即可使用guzz的全部功能。
http://code.google.com/p/guzz/wiki/TutorialConfig?wl=zh-Hans
GuzzContext gc = new Configuration("classpath:guzz.xml").newGuzzContext() ;
//perform you actions......
//.....
//shutting it down when you application exit.
gc.shutdown();
涉及到的类均位于org.guzz.builder
GuzzConfigFileBuilder.build()方法完成配置文件解析,即:
GuzzConfigFileBuilder b = GuzzConfigFileBuilder.build(gf, fs, "UTF-8");
jpa注解解析还会涉及到JPA2AnnotationsBuilder