How it works · The pipeline

One path for every call, with the policies around it

An HTTP request, an event, a schedule or an AI tool call all become the same object, a ChenileExchange, and travel the same chain of interceptors to a plain Java method and back. That chain is where every policy lives, so the business code stays free of them.

The Chenile pipeline: one exchange through the interceptor chain A request or an event becomes a ChenileExchange and goes down the chenile-highway chain: headers are checked and copied to the context, deployable-wide pre-processors run, the body gets its type, the implementation is chosen, operation and service interceptors run, and the service invoker calls a plain Java method. On the way back the exception handler translates messages and the response builder wraps the result in a GenericResponse. Variants show a protected header, an unreadable body and a service error. chenile-highway (chenile-core.xml) POST /orderHTTP · JSON body ChenileEntryPointbuilt by HttpEntryPoint log-outputa LogRecord; @ExternalApi calls are publishedgeneric-response-builderwraps the result in a GenericResponse, on the way backexception-handlerchenile.exception.handler · translates message codesvalidate-copy-headersrequest id · x- headers → context · x-p- → 403pre-processorschenile.pre.processors · every service in the deployabletransformation-class-selectorbody type: the input class, or a body type selectortransformerschenile.transformers · JSON by defaultconstruct-service-referencemock › trajectory › service selector › default beanpost-processorschenile.post.processorsoperation interceptors@InterceptedBy on the operationservice interceptors@InterceptedBy on the serviceservice-invokerbinds BODY, HEADER, HEADERS, MULTI_PART OrderServiceImplsave(Order order) the way back (dashed): each interceptor's post-processing, innermost first a plain class: no HTTP, no headers, no policies
scenario
entry
view
Step 1

Exchange

Payload

A nested call stack

Each interceptor calls the rest of the chain inside its own try and finally. Work on the way in happens before the call; work on results happens after it, innermost first.

Decided late, from data

The body type and the implementation are chosen per request, after headers and pre-processors have run, so a header can switch a variant without the caller knowing.

One envelope, one language

Errors carry codes. On the way back they are translated for the caller's locale and wrapped in the same GenericResponse as every success.