- 1. 多线程jdk5的线程包
同步,线程安全。
- 2. jvm垃圾回收机制、jvm优化。
- 3. JVM装载,以及classload,Class.forName
- 4. ThreadLocal
- 5. 反射,动态代理
private Logger logger = Logger.getLogger(this.getClass().getName());
public void processBusiness(){
//business processing
System.out.println(“here is business logic”);
}
}
BusinessInterface businessImp = new BusinessObject();
InvocationHandler handler = new LogHandler(businessImp);
BusinessInterface proxy = (BusinessInterface) Proxy.newProxyInstance(
businessImp.getClass().getClassLoader(),
businessImp.getClass().getInterfaces(),
handler);
proxy.processBusiness();
- 6. 字节码操作CGLIB
- 7. 系统优化
- 8.
没有评论:
发表评论