Thank you, that really helps a lot. I thought that I have to add the custom element for every bean, but once per file is not a big thing.
Best regards, Matthias 2015-03-16 17:37 GMT+01:00 Christian Schneider <[email protected]>: > Take a look at the blueprint-authz module. It does a very similar thing > ... maybe even exactly what you want :-) > If not it should still be easy to enhance it. > > See https://fisheye6.atlassian.com/browse/~br=trunk/aries/ > trunk/blueprint/blueprint-authz > > I had to use a namespace and even a custom element simply to activate the > interceptor. No idea if it can be done differently. > > Christian > > > On 16.03.2015 17:31, Matthias Seidemann wrote: > >> Hello everyone, >> >> In my application I want to intercept the calls of service-methods and >> check if the currently logged in user has permissions to do so. I already >> found the "org.apache.aries.blueprint.Interceptor" Interface to do that, >> but I don't really know how I can tell aries to call my Interceptor. Any >> ideas on how to realize that? >> >> I think I already found a way to do this by using a custom namespace with >> a custom NamespaceHandler implementation (did not fully implement it yet), >> but I don't really want to do it in that way because I don't want the need >> to add extra attributes to the beans. >> >> Best regards, >> Matthias >> > > > -- > Christian Schneider > http://www.liquid-reality.de > > Open Source Architect > http://www.talend.com > >
