@ApplicationScoped public class BusCommands extends Object
BusCommands that can operate on messages coming over a bus queue or topic.| Constructor and Description |
|---|
BusCommands() |
| Modifier and Type | Method and Description |
|---|---|
<REQ extends BasicMessage,RESP extends BasicMessage> |
getCommand(Class<REQ> requestClass)
Returns a
BusCommand that should handle the given requestClass. |
public <REQ extends BasicMessage,RESP extends BasicMessage> BusCommand<REQ> getCommand(Class<REQ> requestClass) throws NoCommandForMessageException
BusCommand that should handle the given requestClass.requestClass - the type of a request for which a processing BusCommand should be found by this
methodBusCommand, never nullNoCommandForMessageException - if no BusCommand was foundCopyright © 2014–2017 Red Hat, Inc.. All rights reserved.