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

Pete Muir pmuir at redhat.com
Thu Apr 15 07:51:01 EDT 2010


On 14 Apr 2010, at 23:58, Dan Allen wrote:

> On Wed, Apr 14, 2010 at 6:47 PM, Stuart Douglas <stuart at baileyroberts.com.au> wrote:
> What do you mean by 'The approach taken by decorators'?
> 
> Just that in a decorator, you inject the bean instance. In this case, we are injecting the bean metadata.

You can also inject the InjectionPoint metadata in a decorator.

I wonder if we should rename @InterceptedMetadata to @Target?

@Inject @Target Bean bean;

@Inject @Target AnnotatedType type;

I also think, if we are doing this, we should also support

@Inject @Target Object target;

@Inject @Target Method method;

@Inject @Target Object[] parameters;




More information about the seam-dev mailing list