I'm having problems with this piece of code, located in org.jboss.weld.resources.ManagerObjectFactory:
public Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?, ?> environment) throws Exception
{
for (Entry<BeanDeploymentArchive, BeanManagerImpl> entry : Container.instance().beanDeploymentArchives().entrySet())
{
if (entry.getKey().getId().equals("flat"))
{
return entry.getValue().getCurrent();
}
}
throw new NamingException(messageConveyer.getMessage(CANNOT_LOCATE_BEAN_MANAGER));
}
Pete, what would be the correct implementation for this?