【发布时间】:2015-02-10 12:04:59
【问题描述】:
我可以使用 Byte Buddy 在运行时通过继承抽象类来增强类吗?
@AggregateRoot
public class Organization {
}
我应该能够拦截Organization 的所有实例,并通过从如下抽象类继承来增强它。
public abstract class BaseAggregateRoot {
public void notify() {
//Notify domain events
}
}
【问题讨论】:
标签: java inheritance bytecode byte-buddy