-
Notifications
You must be signed in to change notification settings - Fork 0
Extending Library interface
kengu edited this page Jan 20, 2013
·
1 revision
If an interfaces that extend the Library interface is created using deferred binding, there is one strict limitation: the extended interface can not contain any methods.
Library instances are generated using LibraryGenerator, which does not known how to implement any methods specified in the extended interface. If this limitations presents a big problem later on, it can be relaxed by adding a new annotation which specifies the name to a delegate class implementing these methods, which the generator can forward each unknown method to. It will however be difficult to make this solution work reliably, because of all the different edge-cases which must be handled.