public class CommunicationProvider
extends java.lang.Object
CommunicationProvider
provides methods for communication with ports
This Class is usually used in Rule-classes and allows API access only
Constructor and Description |
---|
CommunicationProvider() |
Modifier and Type | Method and Description |
---|---|
static void |
executeRequest(RequestContext<?> context) |
static void |
handleNotification(NotificationContext context) |
static void |
handleResponse(RequestContext<?> context) |
static <T extends InstantiableContext> |
newContextInstance(CommunicationPort port,
java.lang.Class<T> contextClass)
For internal use in ports.
|
static <T extends InstantiableContext> |
newContextInstance(CommunicationPortKey portKey,
java.lang.Class<T> contextClass)
For use in rules.
|
void |
setCommunicationService(CommunicationService comService) |
public void setCommunicationService(CommunicationService comService)
public static void handleNotification(NotificationContext context) throws BusinessException
context
- BusinessException
public static void executeRequest(RequestContext<?> context) throws BusinessException
context
- BusinessException
public static void handleResponse(RequestContext<?> context) throws BusinessException
context
- BusinessException
public static <T extends InstantiableContext> T newContextInstance(CommunicationPortKey portKey, java.lang.Class<T> contextClass) throws BusinessException
portKey
- contextClass
- BusinessException
public static <T extends InstantiableContext> T newContextInstance(CommunicationPort port, java.lang.Class<T> contextClass) throws BusinessException
port
- contextClass
- BusinessException
Copyright © 2024. All rights reserved.