大家都在项目中不使用 Aspect 吗?
public aspect DomainObjectConfiguration extends AbstractBeanConfigurerAspect {
public DomainObjectConfiguration() {
setBeanWiringInfoResolver(new ClassNameBeanWiringInfoResolver());
}
// the creation of a new bean (any object in the domain model)
protected pointcut beanCreation(Object beanInstance) :
initialization(new(..)) &&
SystemArchitecture.inDomainModel() &&
this(beanInstance);
}
public aspect DomainObjectConfiguration extends AbstractBeanConfigurerAspect {
public DomainObjectConfiguration() {
setBeanWiringInfoResolver(new ClassNameBeanWiringInfoResolver());
}
// the creation of a new bean (any object in the domain model)
protected pointcut beanCreation(Object beanInstance) :
initialization(new(..)) &&
SystemArchitecture.inDomainModel() &&
this(beanInstance);
}
解决方案 »
- spring3.1+hibernate4.0的问题,求达人解答,希望CSDN能帮助解决
- 如何让IE一打开就全屏显示,按F11那种
- tomcat 压力测试,并发数测试,有什么好的工具?
- JAVA到底有哪些技术
- 数据库里的字段类型是int,jb生成的类型是Integer
- tomcat在启动时出现的错误异常!!!!
- 请问如何在nokia模拟器上使用socket协议通讯啊???
- java.util.ArrayList中值对象排序问题.
- Spring boot 部署tomcat
- spring与mybatis整合遇到bug
- jquery里.ajax({ .......... dataType: "json" }) 里面dataType: "json"的问题
- 用户管理弹出框
<!DOCTYPE aspectj PUBLIC "-//AspectJ//DTD//EN" "http://www.eclipse.org/aspectj/dtd/aspectj.dtd">
<aspectj>
<weaver>
<!-- only weave classes in our application-specific packages -->
<include within="foo.*"/>
</weaver>
<aspects>
<!-- weave in just this aspect -->
<aspect name="foo.ProfilingAspect"/>
</aspects>
</aspectj>