In seam nosotros convey something similar
MyClass myClass = (MyClass) Component.getInstance("MyClass");
In JavaEE6, nosotros practice that by:
Beanedible bean = (Bean ) beanManager.getBeans(MyClass.class).iterator().next(); CreationalContext ctx = beanManager.createCreationalContext(bean); provide (MyClass) beanManager.getReference(bean, MyClass.class, ctx);
I role this type of approach unremarkably amongst FacesConverters.
0 komentar:
Please comment if there are any that need to be asked.