public abstract class AbstractListenerFactoryBean<T>
implements org.springframework.beans.factory.FactoryBean<java.lang.Object>, org.springframework.beans.factory.InitializingBean
FactoryBean implementation that builds a listener based on the
various lifecycle methods or annotations that are provided. There are three
possible ways of having a method called as part of a listener lifecycle:
Interface implementation: By implementing any of the subclasses of a
listener interface, methods on said interface will be called
Annotations: Annotating a method will result in registration.
String name of the method to be called, which is tied to a
ListenerMetaData value in the metaDataMap.
It should be noted that methods obtained by name or annotation that don't
match the listener method signatures to which they belong will cause errors.
However, it is acceptable to have no parameters at all. If the same method is
marked in more than one way. (i.e. the method name is given and it is
annotated) the method will only be called once. However, if the same class
has multiple methods tied to a particular listener, each method will be
called. Also note that the same annotations cannot be applied to two separate
methods in a single class.