public class ProcessorContextImpl extends Object implements ProcessorContext
ProcessorContext.| Constructor and Description |
|---|
ProcessorContextImpl(ApplicationRouter theRouter,
TransportLayer theTransport,
SafeStorage theStorage)
Creates a new instance that uses the given resources.
|
ProcessorContextImpl(ApplicationRouter theRouter,
TransportLayer theLocallyDrivenTransport,
TransportLayer theRemotelyDrivenTransport,
SafeStorage theStorage)
Creates a new instance that uses the given resources.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addValidator(AcceptValidator theValidator)
Adds a new validator to the list of those returned by
getValidators(). |
TransportLayer |
getLocallyDrivenTransportLayer() |
List<String> |
getMetadataFields()
Returns the list of fields that are to be included as metadata whenever a
Message
is converted to a Transportable. |
TransportLayer |
getRemotelyDrivenTransportLayer() |
ApplicationRouter |
getRouter() |
SafeStorage |
getSafeStorage() |
AcceptValidator[] |
getValidators() |
public ProcessorContextImpl(ApplicationRouter theRouter, TransportLayer theTransport, SafeStorage theStorage)
theRouter - theTransport - a TransportLayer used for both locally-initiated
and remotely-initiated message exchangestheStorage - public ProcessorContextImpl(ApplicationRouter theRouter, TransportLayer theLocallyDrivenTransport, TransportLayer theRemotelyDrivenTransport, SafeStorage theStorage)
theRouter - theLocallyDrivenTransport - a TransportLayer used for locally-initiated
and message exchangestheRemotelyDrivenTransport - a TransportLayer used for remotely-initiated
and message exchangestheStorage - public ApplicationRouter getRouter()
getRouter in interface ProcessorContextApplicationProcessorContext.getRouter()public TransportLayer getRemotelyDrivenTransportLayer()
getRemotelyDrivenTransportLayer in interface ProcessorContextProcessorContext.getRemotelyDrivenTransportLayer()public TransportLayer getLocallyDrivenTransportLayer()
getLocallyDrivenTransportLayer in interface ProcessorContextProcessorContext.getLocallyDrivenTransportLayer()public AcceptValidator[] getValidators()
getValidators in interface ProcessorContextProcessorContext.getValidators()public void addValidator(AcceptValidator theValidator)
getValidators().addValidator in interface ProcessorContexttheValidator - the validator to addpublic SafeStorage getSafeStorage()
getSafeStorage in interface ProcessorContextProcessorContext.getSafeStorage()public List<String> getMetadataFields()
ProcessorContextMessage
is converted to a Transportable. Each field is a String Terser
path.getMetadataFields in interface ProcessorContextProcessorContext.getMetadataFields()Copyright © 2001–2017 University Health Network. All rights reserved.