public abstract class KnowledgeExchangeHandler
extends org.switchyard.deploy.BaseServiceHandler
implements org.switchyard.deploy.ServiceHandler
| Constructor and Description |
|---|
KnowledgeExchangeHandler(KnowledgeComponentImplementationModel model,
org.switchyard.ServiceDomain serviceDomain,
QName serviceName)
Constructs a new KnowledgeExchangeHandler with the specified model, service domain, and service name.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doStart() |
protected void |
doStop() |
protected Boolean |
getBoolean(org.switchyard.Exchange exchange,
org.switchyard.Message message,
String name)
Gets a Boolean context property.
|
abstract KnowledgeOperation |
getDefaultOperation()
Gets the default knowledge operation.
|
protected Map<String,Object> |
getGlobalVariables(KnowledgeRuntimeEngine runtimeEngine)
Gets the global variables from the knowledge runtime engine.
|
protected Integer |
getInteger(org.switchyard.Exchange exchange,
org.switchyard.Message message,
String name)
Gets an Integer context property.
|
protected ClassLoader |
getLoader()
Gets the class loader.
|
protected Long |
getLong(org.switchyard.Exchange exchange,
org.switchyard.Message message,
String name)
Gets a Long context property.
|
KnowledgeComponentImplementationModel |
getModel() |
protected Object |
getObject(org.switchyard.Exchange exchange,
org.switchyard.Message message,
String name)
Gets an Object context property.
|
org.switchyard.ServiceDomain |
getServiceDomain()
Gets the service domain.
|
QName |
getServiceName()
Gets the service name.
|
protected String |
getString(org.switchyard.Exchange exchange,
org.switchyard.Message message,
String name)
Gets a String context property.
|
void |
handleMessage(org.switchyard.Exchange exchange) |
abstract void |
handleOperation(org.switchyard.Exchange exchange,
KnowledgeOperation operation)
Handles a knowledge operation.
|
protected boolean |
isBoolean(org.switchyard.Exchange exchange,
org.switchyard.Message message,
String name)
Gets a primitive boolean context property.
|
protected KnowledgeRuntimeManager |
newPerProcessInstanceRuntimeManager()
Creates a new PerProcessInstance KnowledgeRuntimeManager.
|
protected KnowledgeRuntimeManager |
newPerRequestRuntimeManager()
Creates a new PerRequest KnowledgeRuntimeManager.
|
protected KnowledgeRuntimeManager |
newSingletonRuntimeManager()
Creates a new Singleton KnowledgeRuntimeManager.
|
getDeploymentClassLoader, getState, setState, start, stoppublic KnowledgeExchangeHandler(KnowledgeComponentImplementationModel model, org.switchyard.ServiceDomain serviceDomain, QName serviceName)
model - the specified modelserviceDomain - the specified service domainserviceName - the specified service namepublic org.switchyard.ServiceDomain getServiceDomain()
public QName getServiceName()
protected ClassLoader getLoader()
protected void doStart()
doStart in class org.switchyard.deploy.BaseServiceHandlerprotected KnowledgeRuntimeManager newSingletonRuntimeManager()
protected KnowledgeRuntimeManager newPerRequestRuntimeManager()
protected KnowledgeRuntimeManager newPerProcessInstanceRuntimeManager()
protected void doStop()
doStop in class org.switchyard.deploy.BaseServiceHandlerpublic abstract KnowledgeOperation getDefaultOperation()
public final void handleMessage(org.switchyard.Exchange exchange)
throws org.switchyard.HandlerException
handleMessage in interface org.switchyard.ExchangeHandlerhandleMessage in class org.switchyard.BaseHandlerorg.switchyard.HandlerExceptionpublic abstract void handleOperation(org.switchyard.Exchange exchange,
KnowledgeOperation operation)
throws org.switchyard.HandlerException
exchange - the exchangeoperation - the operationorg.switchyard.HandlerException - oopsprotected boolean isBoolean(org.switchyard.Exchange exchange,
org.switchyard.Message message,
String name)
exchange - the exchangemessage - the messagename - the nameprotected Boolean getBoolean(org.switchyard.Exchange exchange, org.switchyard.Message message, String name)
exchange - the exchangemessage - the messagename - the nameprotected Integer getInteger(org.switchyard.Exchange exchange, org.switchyard.Message message, String name)
exchange - the exchangemessage - the messagename - the nameprotected Long getLong(org.switchyard.Exchange exchange, org.switchyard.Message message, String name)
exchange - the exchangemessage - the messagename - the nameprotected String getString(org.switchyard.Exchange exchange, org.switchyard.Message message, String name)
exchange - the exchangemessage - the messagename - the nameprotected Object getObject(org.switchyard.Exchange exchange, org.switchyard.Message message, String name)
exchange - the exchangemessage - the messagename - the nameprotected Map<String,Object> getGlobalVariables(KnowledgeRuntimeEngine runtimeEngine)
runtimeEngine - the knowledge runtime enginepublic KnowledgeComponentImplementationModel getModel()
Copyright © 2013–2017 JBoss by Red Hat. All rights reserved.