Greg Wittel wrote:
> Ideally I'd want:
> 1) class, function that would be called
> 2) Parameter values to be passed to the function
>
> If (2) can't be retrieved directly, is there any way to build this info?
> My ultimate goal is to have a check function like:
> check(Class clazz, Method m, Object... args)
> Otherwise I was thinking I'd have to augment each API function directly
> with a check call.
That sounds like a prime candidate for AOP, which works entirely at the
Spring level, rather than anything CXF-specific.
You'd need to create a Spring bean implementing
org.springframework.aop.MethodBeforeAdvice and register that to be
called before your JAX-RS service bean methods, something like this (not
tested!):
<aop:config>
<aop:advisor pointcut="execution(* com.xyz.servicebeans.*.*(..))"
advice-ref="ssoChecker" />
</aop:config>
Ian
--
Ian Roberts | Department of Computer Science
[email protected] | University of Sheffield, UK