public class SpringCommandHandlerRegistryFactory extends Object
SpringCommandHandlerRegistryFactory class creates a registry that contains automatically
discovered classes that implement CommandHandlers. In order
to be discovered, these handlers have to be in the Application Context (i.e., Spring Context).
This can be accomplished by marking handler classes with
Service,
or Component, etc.| Constructor and Description |
|---|
SpringCommandHandlerRegistryFactory() |
| Modifier and Type | Method and Description |
|---|---|
static CommandHandlerRegistry |
discoverCommandHandlersAndCreateRegistry(org.springframework.context.ApplicationContext springContext) |
public static CommandHandlerRegistry discoverCommandHandlersAndCreateRegistry(org.springframework.context.ApplicationContext springContext)
springContext - Spring Application Context.CommandHandlers.Copyright © 2018. All rights reserved.