@ Bean public EventManager clusteredEventManagerImpl ( final EventConnectorHub eventConnectorHub ) { return EventManagerBuilder . eventManagerBuilder ( ) . setEventConnector ( eventConnectorHub ) . setName ( "CLUSTERED_EVENT_MANAGER" ) . build ( ) ; }
Wraps factory method call so we can provide another implementation of interface if needed .