ロード時の織り方をコンパイル時の織り方に変換しようとしています。
そこで<context:load-time-weaver/>
、spring configから削除し、aspectjコンパイラーをに追加しましたpom.xml
。しかし、の情報を変換する方法がわかりませんMETA-INF/aop.xml
。
私はそこにこのようなものを持っています:
<!DOCTYPE aspectj PUBLIC
"-//AspectJ//DTD//EN" "http://www.eclipse.org/aspectj/dtd/aspectj.dtd">
<aspectj>
<weaver>
<!-- only weave classes in this package -->
</weaver>
<aspects>
<!-- use only this aspect for weaving -->
<concrete-aspect name="MyAspect_" extends="hu.myAspect">
<pointcut name="pointcut" expression="execution(public * javax.persistence.EntityManager.*(..)) || execution(public * hu..*.create(..))"/>
</concrete-aspect>
</aspects>
</aspectj>