Can i use Byte Buddy to enhance a class at runtime by inheriting from an abstract class?
@AggregateRoot
public class Organization {
}
I should be able to intercept all instances of Organization
and enhance it by inheriting from an abstract class like below.
public abstract class BaseAggregateRoot {
public void notify() {
//Notify domain events
}
}