posted @ 2013-08-12 20:28 chayu3 阅读(105) 评论(0) 推荐(0) 编辑
摘要:
1, Return subinterfaceFor example, we have a parent interface:public interface A> {T method1(int value);}Then we have subinterface:public interface B 阅读全文
摘要:
Elements in an automation test framework:actor,---simulate trader, have its own name, can get controll of the trading application.Actor'sinstantiation can be configured by spring beans in test project.controller,---simulate trading application GUI, can do various actions, each action can return 阅读全文
posted @ 2013-08-12 19:30 chayu3 阅读(127) 评论(0) 推荐(0) 编辑
摘要:
The normal spring bean definition configuration file, the xsi:schemaLocation only has two: beans and spring-beans.xsd. To define camelContext in spring config file, another two should be added: spring and camel-spring-correlate.xsd. And in , pls specify xmlns=http://camel.apache.org/schema/spring.Mo 阅读全文
posted @ 2013-08-12 19:30 chayu3 阅读(256) 评论(0) 推荐(0) 编辑
摘要:
Custom annotation definition is similar as Interface, just with @ in front. Annotation interface itself can have or have not annotations. @Retention(RetentionPolicy.RUNTIME) means VM will retain annotation with this type so they can be read reflectively at run-time.Java defines a set of annotations 阅读全文
posted @ 2013-08-12 15:13 chayu3 阅读(228) 评论(0) 推荐(0) 编辑
摘要:
在Baths-stomp里面的每个Fluent Interface Interactor Impl,都继承了MarketDataAccessor,which is an abstract class。Class如果包含Abstract methods,则一定要声明为Abstract class。Abstract class与interface的区别是: 1,Abstract class可以有unimplemented methods,也可以有implemented methods。2,Java interface里只可以包含constant(默认Static final)和方法声明, 而Abs 阅读全文
posted @ 2013-07-22 14:41 chayu3 阅读(214) 评论(0) 推荐(0) 编辑
摘要:
Nexus是maven的仓库管理器,如果使用maven,你可以从maven central repo下载所需的artifact,但这样很慢。Nexus在代理远程仓库的同时,维护本地仓库,以节省带宽和时间。Nexus可以代理Maven central repo,管理本地maven repo[release, snapshot, 3rd party].Nexus group的概念是maven没有的,nexus可以将多个仓库合并成一个group,这样,在我的机器上的maven project只需要依赖于一个group,就可以用到多个repo里面的artifact.在我的maven project里面 阅读全文
posted @ 2013-05-28 19:26 chayu3 阅读(349) 评论(0) 推荐(0) 编辑