all I want to do is autowire the field backgroundGray in the NotesPanel class, but all I get is the exception below.
So, question is, how to autowire it correctly ? It r
Spring support @Autowire
, ... only for Spring Beans. Normally a Java Class become a Spring Bean when it is created by Spring, but not by new
.
One workarround is to annotate the class with @Configurable
but you must use AspectJ (compile time or loadtime waving)!
@see Using Spring's @Configurable in three easy steps for an short step by step instruction.