08 2013 档案

摘要:Enum is a reference type(similar to a class, interface and array), which holds a reference to memory in the heap. Enum class can include other compone... 阅读全文

posted @ 2013-08-27 18:49 chayu3 阅读(239) 评论(0) 推荐(0)

摘要:Client---->Interface A -- --代理类 Class AImpl代理类是动态生成的,借助Proxy类和InvocationHandler接口进行实现,InvocationHandler的invoke函数就是调用目标类实现的功能接口的地方,可以在这里进行访问控制,添加额外的... 阅读全文

posted @ 2013-08-21 14:31 chayu3 阅读(391) 评论(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 阅读全文

posted @ 2013-08-12 20:28 chayu3 阅读(111) 评论(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 阅读(260) 评论(0) 推荐(0)

摘要: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 阅读(130) 评论(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 阅读(236) 评论(0) 推荐(0)