samedi 30 mai 2015

AspectJ ITDs : introduction of methods dynamically based on reflection

is it possible to introduce methods definition on a interface using AspectJ dynamically based on methods defined in another using reflection API ?

for example: giving an interface A

public interface A {
    Integer getNext();
}

i want to introduce the same method name into interface B with another return type like so:

public interface B {
    Property<Integer> getNext();
}

Thank you





Aucun commentaire:

Enregistrer un commentaire