org.onebusaway.container.spring
Class ListenerConnector<T>

java.lang.Object
  extended by org.onebusaway.container.spring.ListenerConnector<T>

public class ListenerConnector<T>
extends Object

Spring convenience class for wiring up HasListeners listener containers with listener objects. Specify an arbitrary number of source containers and listeners and they will be wired up in a PostConstruct phase.

Author:
bdferris

Constructor Summary
ListenerConnector()
           
 
Method Summary
 void setListener(T listener)
           
 void setSource(HasListeners<T> source)
           
 void setSources(List<HasListeners<T>> sources)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListenerConnector

public ListenerConnector()
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()


Copyright © 2011 OneBusAway. All Rights Reserved.