假设AspectedLib.jar是包含这些定义的文件(在eclipse中创建,使用"export jar file with aspectj support")。如果我导入AspectedLib.jar文件,甚至使用其中定义的一些类,它可以工作,但不会触发任何连接点,也就是说,方面不会执行。
我怎么才能让它工作呢?
我希望我的类实现一个接口,但我想在一个方面提供使用ITD的方法的实现。,这有可能吗?public interface CloningService<T> {}public class DefaultCloningServiceImpl implements CloningService<T> { // implementation of the clone method}pub