使用Spring @AspectJ方式的AOP,代码@Aspect
public class AndyaoAspect {
@Pointcut("execution(* com.andyao.Repository.get(java.lang.Integer))&& args(id)")
public void get(Integer id){
}
@Around("get(id)")
public Object fromCache(ProceedingJoinPoint pjp, Integer ...
原文:http://dev2dev.bea.com.cn/techdoc/2007/10/exception-advice.html
作者:Barry Ruzek 摘要
有效的异常处理策略是一大架构关注点,它超越了独立应用程序组件的边界。有效的Java异常(Dev2Dev
中文版,2007年2月)概述了错误-意外事件(Fault-Contingency)异常模型,消除了在Java应用程序中使用已检查还是未检查异常的
迷惑。使用传统Java技术实现这种模型要求所有组件都遵循一组规则和行为。这也就暗中表明原本无关的组件间的耦合需要为意料之外的失误和故障留出空间。
在错误-意外 ...
原文http://google-perftools.googlecode.com/svn/trunk/doc/tcmalloc.html
Sanjay Ghemawat
Motivation
TCMalloc is faster than the glibc 2.3 malloc (available as a
separate library called ptmalloc2) and other mallocs that I have
tested. ptmalloc2 takes approximately 300 nanoseconds to execute a ...
- 浏览: 42885 次
- 性别:

- 来自: 北京

- 详细资料
搜索本博客
我的相册
Snap1
共 1 张
共 1 张
最新评论
-
使用Atomikos Transaction ...
引用Caused by: com.atomikos.icatch.SysExce ...
-- by bagui3 -
Struts2中使用Stream Res ...
Stream result type? 可有可无,把Respose的header ...
-- by ray_linn -
Struts2中使用Stream Res ...
我的程序,虽然结果出来了,但后台总是抛错:------------------- ...
-- by Acaleph -
使用Atomikos Transaction ...
Caused by: com.atomikos.icatch.SysExcept ...
-- by baoyaer -
Annotation风格的Spring M ...
刚用了spring MVC的annotation, 确实简单。应该说在简化问题上 ...
-- by slaser






评论排行榜