[seam-dev] Retrieving the Bean object for an interceptor

Stuart Douglas stuart at baileyroberts.com.au
Tue Apr 6 00:56:41 EDT 2010


I can't see any way to get information about the actual Bean that an interceptor is bound to.

For example say I have a class:

@Security("#{true}")
class SomeClass
{
   ...
}

Another bean with the same class is wired up with XML:

<t:SomeClass>
  <se:Security>#{false}</se:Security>
  ....
</t:SomeClass>

I cannot see any way for a security interceptor to know which Bean it is intercepting, and therefore figure out which annotation to use. Is there something I am missing here?

Stuart


More information about the seam-dev mailing list