is it possible to implement an interface using Annotaitons/Spring AOP/Proxies? For example, I have the simplified interface Foo. The first and second method usually only return a value. These values could be annotated on class level like shown in class Bar. The third method will be dynamically implemented by class Bar and annotated with the @CallMethod annotation.
At the end Spring beans of class Bar should implement the interface Foo.
public interface Foo {
public URI getID();
public String getRequires();
public void call(Item item);
}
@FooAnnotation(id = "myID", requires = "text/plain")
public class Bar {
@CallMethod
public void myCallMethod(Item item)
}