You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
getInstance( String name )
getInstance( String name , boolean create )
public static <T> T getInstance(String name) {
return getInstance(name,true);
}
public static <T> T getInstance(String name,boolean create) {
BeanManager beanManager = getBeanManager(); // get BeanManager
Set<Bean<?>> beans = beanManager.getBeans(name); // get all the Beans with name
Bean<?> bean = beanManager.resolve(beans); // resolve the best candidate
return (T)BeansLocal.getInstance(beanManager,bean,create); // OmniFaces BeansLocal
}
The text was updated successfully, but these errors were encountered:
Sometimes could be useful...
Seam / Deltaspike style
The text was updated successfully, but these errors were encountered: