Package org.onebusaway.container.spring
Class ListenerConnector<T>
- java.lang.Object
-
- org.onebusaway.container.spring.ListenerConnector<T>
-
public class ListenerConnector<T> extends Object
Spring convenience class for wiring upHasListenerslistener containers with listener objects. Specify an arbitrary number of source containers and listeners and they will be wired up in aPostConstructphase.- Author:
- bdferris
-
-
Constructor Summary
Constructors Constructor Description ListenerConnector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetListener(T listener)voidsetSource(HasListeners<T> source)voidsetSources(List<HasListeners<T>> sources)voidstart()voidstop()
-
-
-
Method Detail
-
setSource
public void setSource(HasListeners<T> source)
-
setSources
public void setSources(List<HasListeners<T>> sources)
-
setListener
public void setListener(T listener)
-
start
@PostConstruct public void start()
-
stop
@PreDestroy public void stop()
-
-