This content has been marked as final.
Show 2 replies
-
1. Re: Seam 2.x components in Weld
pmuir May 6, 2010 1:23 PM (in response to umajeric)
Uros Majeric wrote on May 06, 2010 09:15:
How to get those behaviours in Weld:Contexts.isSessionContextActive()
try { beanManager.getContext(SessionScoped.class); } catch (ContextNotActiveException e) { return false; } return true;
Component.getInstance(clazz, ScopeType.SESSION)
@Inject Instance<Object> instance; instance.get(clazz);
Component.getInstance("componentName")
Not really relevant, components don't have names
is it possible to inject static BeanManager:@Inject static BeanManager beanManager;
Thanks, UrosNo.
-
2. Re: Seam 2.x components in Weld
umajeric May 6, 2010 1:52 PM (in response to umajeric)thank you...
Uros