(handlerId)
| 48 | } |
| 49 | |
| 50 | function parseRoleFromHandlerId(handlerId) { |
| 51 | switch (handlerId[0]) { |
| 52 | case 'S': |
| 53 | return HandlerRoles.SOURCE; |
| 54 | case 'T': |
| 55 | return HandlerRoles.TARGET; |
| 56 | default: |
| 57 | invariant(false, `Cannot parse handler ID: ${handlerId}`); |
| 58 | } |
| 59 | } |
| 60 | |
| 61 | export default class HandlerRegistry { |
| 62 | constructor(store) { |
no outgoing calls
no test coverage detected