zno2

2018年12月19日 #

基于接口的 InvocationHandler 动态代理(换种写法)

摘要: InvocationHandler is the interface implemented by the invocation handler of a proxy instance. Each proxy instance has an associated invocation handler 阅读全文

posted @ 2018-12-19 16:59 zno2 阅读(285) 评论(0) 推荐(0) 编辑

基于继承的 MethodInterceptor 动态代理(换种写法)

摘要: net.sf.cglib.proxy.Enhancer Generates dynamic subclasses to enable method interception. This class started as a substitute for the standard Dynamic Pr 阅读全文

posted @ 2018-12-19 16:59 zno2 阅读(342) 评论(0) 推荐(0) 编辑

spring aop 的代理工厂

摘要: 参考 https://docs.spring.io/spring/docs/4.3.11.RELEASE/spring-framework-reference/htmlsingle/#aop-understanding-aop-proxies package org.springframework. 阅读全文

posted @ 2018-12-19 16:57 zno2 阅读(358) 评论(0) 推荐(0) 编辑

排序算法(sorting algorithm) 之 选择排序(selection sort)

摘要: https://en.wikipedia.org/wiki/Selection_sort loop1: 4,6,1,3,7 -> 4,6,1,3,7 4,6,1,3,7 -> 1,6,4,3,7 1,6,4,3,7 -> 1,6,4,3,7 1,6,4,3,7 -> 1,6,4,3,7 loop2: 阅读全文

posted @ 2018-12-19 16:46 zno2 阅读(243) 评论(0) 推荐(0) 编辑

排序算法(sorting algorithm)之 插入排序(insertion sort)

摘要: https://en.wikipedia.org/wiki/Insertion_sort loop1: 4,6,1,3,7 -> 4,6,1,3,7 loop2: 4,6,1,3,7 -> 4,1,6,3,7 4,1,6,3,7 -> 1,4,6,3,7 loop3: 1,4,6,3,7 -> 1, 阅读全文

posted @ 2018-12-19 16:45 zno2 阅读(229) 评论(0) 推荐(0) 编辑

join()

摘要: 1)谁等待这个线程结束 2)等多久 public final synchronized void join(long millis) throws InterruptedException { long base = System.currentTimeMillis(); long now = 0; 阅读全文

posted @ 2018-12-19 16:44 zno2 阅读(182) 评论(0) 推荐(0) 编辑

排序算法 (sorting algorithm)之 冒泡排序(bubble sort)

摘要: http://www.algolist.net/Algorithms/ https://docs.oracle.com/javase/tutorial/collections/algorithms/ https://en.wikipedia.org/wiki/Sorting_algorithm 冒泡 阅读全文

posted @ 2018-12-19 16:44 zno2 阅读(573) 评论(0) 推荐(0) 编辑

导航