Package org.nuclos.api.service
Interface CommunicationService
public interface CommunicationService
-
Method Summary
Modifier and TypeMethodDescriptionvoid
executeRequest
(RequestContext<?> context) void
handleNotification
(NotificationContext context) void
handleResponse
(RequestContext<?> context) <T extends InstantiableContext>
TnewContextInstance
(CommunicationPortKey portKey, Class<T> contextClass) For use in rules.<T extends InstantiableContext>
TnewContextInstance
(CommunicationPort port, Class<T> contextClass) For internal use in ports.
-
Method Details
-
handleNotification
- Parameters:
context
-- Throws:
BusinessException
-
executeRequest
- Parameters:
context
-- Throws:
BusinessException
-
handleResponse
- Parameters:
context
-- Throws:
BusinessException
-
newContextInstance
<T extends InstantiableContext> T newContextInstance(CommunicationPortKey portKey, Class<T> contextClass) throws BusinessException For use in rules.- Parameters:
portKey
-contextClass
-- Returns:
- a new instance of the given context class
- Throws:
BusinessException
-
newContextInstance
<T extends InstantiableContext> T newContextInstance(CommunicationPort port, Class<T> contextClass) throws BusinessException For internal use in ports.- Parameters:
port
-contextClass
-- Returns:
- a new instance of the given context class
- Throws:
BusinessException
-