a1atscript icon indicating copy to clipboard operation
a1atscript copied to clipboard

Simplified annotation defs

Open nyarly opened this issue 10 years ago • 0 comments

As is, every annotation needs two closely coupled classes, but there doesn't seem to be a reason for that.

You need the annotation itself and the annotationInjector that does the actual work. The injector tends to be in a class heirarchy, but the annotation doesn't. There isn't any overlap of methods.

Consider unifying these classes - just apply the instatiate method of found annotations as we go.

nyarly avatar Feb 14 '15 03:02 nyarly