I have a class defined like this:
public class MyClass extends SimpleChannelInboundHandler<DataFrame<ByteBuf>> implements ApplicationEventPublisherAware
(SimpleChannelInboundHandler is an io.netty class.)
Then, in my xml file I define the MyClass like this:
<bean id="MyClass" class="com.mypackage.MyClass" />
According to the documentation:
At configuration time, the Spring container will detect that EmailService implements ApplicationEventPublisherAware and will automatically call setApplicationEventPublisher().
But it's null when I run this.
Any ideas why?
Thanks