I have implemented a "filter chain" factory (similar to what we have in HiveMind) and was wondering if someone else had already done something like this so that I could just use theirs (preferably accessible via Maven2). Basically, it's a factory which allows you to specify a service interface, a list of filters, and a terminus. Then, it will create a series of JDK dynamic proxies (I may use my Jakarta Commons Proxy library eventually) which makes sure all method calls on the outer proxy go through the filters and eventually terminate at the terminus bean. The filters don't have to adhere to any special interface (they can of course), so I guess you could say it supports "duck typing" in a way. They just need to provide methods which have the same signature except they've got an additional parameter tacked onto the end of the same type as the service interface (represents the "next" guy in the chain). Does anyone know of something like that already out there?
Announcement Announcement Module
No announcement yet.
FilterChainFactoryBean Page Title Module
Move Remove Collapse