Also forgot to attach the code snippet:
protected void injectNonContextualInstance(BeanManager manager, Object
instance)
{
CreationalContext<Object> creationalContext =
manager.createCreationalContext(null);
InjectionTarget<Object> injectionTarget = (InjectionTarget<Object>)
manager.createInjectionTarget(
manager.createAnnotatedType(instance.getClass()));
injectionTarget.inject(instance, creationalContext);
}
-Dan
On Wed, Mar 9, 2011 at 15:15, Dan Allen <[email protected]> wrote:
> On Wed, Mar 9, 2011 at 15:14, Dan Allen <[email protected]> wrote:
>
>> Yes. What you want to accomplish is called "injecting into a
>> non-contextual instance", or in other words "injecting into a non-bean
>> instance". The object is an injection target.
>>
>> I meant: in other words, "injecting into a non-managed instance".
>
> --
> Dan Allen
> Principal Software Engineer, Red Hat | Author of Seam in Action
> Registered Linux User #231597
>
> http://www.google.com/profiles/dan.j.allen#about
> http://mojavelinux.com
> http://mojavelinux.com/seaminaction
>
>
--
Dan Allen
Principal Software Engineer, Red Hat | Author of Seam in Action
Registered Linux User #231597
http://www.google.com/profiles/dan.j.allen#about
http://mojavelinux.com
http://mojavelinux.com/seaminaction
_______________________________________________
weld-dev mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/weld-dev