I have a plugin. It can find the attachment manager using
ContainerManager.getComponent("attachmentManager")but I cannot figure out how to autowire it. The relatively straightforward
@Autowired
public MyCustomServlet(AttachmentManager attachmentManager) {
}
Produces a stack trace that implies I need to use <component-import>, yet adding @ComponentImport did not resolve that error. I tried adding an import into my own spring xml,
<import resource="classpath:/applicationContext.xml"/>
but that did not work either. What am I missing?