public class SpringCommandHandlerDiscoverer extends Object implements CommandHandlerDiscoverer
SpringCommandHandlerDiscoverer class is a Spring Framework implementation of the
CommandHandlerDiscoverer interface. It uses only the Spring context to look for
concrete implementations of CommandHandler interface.| Constructor and Description |
|---|
SpringCommandHandlerDiscoverer(org.springframework.context.ApplicationContext springContext)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
List<? extends CommandHandler<? extends Command<? extends CommandResponse>,? extends CommandResponse>> |
discoverHandlers()
This method scans the system for concrete command handler implementations of
CommandHandler interface. |
public SpringCommandHandlerDiscoverer(org.springframework.context.ApplicationContext springContext)
springContext - Spring Framework application context.public List<? extends CommandHandler<? extends Command<? extends CommandResponse>,? extends CommandResponse>> discoverHandlers()
CommandHandlerDiscovererCommandHandler interface. Empty list is returned if nothing is discovered.discoverHandlers in interface CommandHandlerDiscovererCommandHandler interface.. Empty list is returned if nothing is discovered.Copyright © 2018. All rights reserved.