jkanschik / node-eip

Implementation of the Enterprise Integration Patterns (EIP) for node.js
6 stars 2 forks source link

Interceptors #22

Open jkanschik opened 12 years ago

jkanschik commented 12 years ago

Create generic interceptors which are called when:

Possible realisation: Different events are defined similar to typical node.js event handling, e.g. "eventInjected" etc. These events are sent to the registered interceptors. The processing should continue only if all interceptors are finished (callback). This is necessary for a delay interceptor.

Would error handling be a special type of interceptor?

Examples for interceptors:

For related concepts in Camel, see: http://camel.apache.org/delay-interceptor.html http://camel.apache.org/tracer.html http://camel.apache.org/debugger.html http://camel.apache.org/intercept.html