I have a service bean (annotated with @Service) which implements the ApplicationListener inteface for T type of event objects that extend the ApplicationEvent abstract Class. There is a pretty simple and clear example of this in the Spring docs here
However when i attempt to inject this bean into other ones using @Autowired i get is:
org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [...] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotation {@org.springframework.beans.factory.annotation.Autowired(required=true)}
If i try to use something like @Resource then i get a class cast exception (attempting to inject a resource of one type but getting a Proxy).