Author: pete.muir(a)jboss.org
Date: 2008-12-24 10:43:30 -0500 (Wed, 24 Dec 2008)
New Revision: 699
Modified:
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bootstrap/WebBeansBootstrap.java
Log:
WBRI-83
Modified:
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bootstrap/WebBeansBootstrap.java
===================================================================
---
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bootstrap/WebBeansBootstrap.java 2008-12-24
15:43:17 UTC (rev 698)
+++
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bootstrap/WebBeansBootstrap.java 2008-12-24
15:43:30 UTC (rev 699)
@@ -56,6 +56,7 @@
import org.jboss.webbeans.bean.InstanceBean;
import org.jboss.webbeans.bean.ProducerFieldBean;
import org.jboss.webbeans.bean.ProducerMethodBean;
+import org.jboss.webbeans.bean.SimpleBean;
import org.jboss.webbeans.bindings.InitializedBinding;
import org.jboss.webbeans.bootstrap.spi.WebBeanDiscovery;
import org.jboss.webbeans.contexts.DependentContext;
@@ -139,7 +140,16 @@
{
Set<AbstractBean<?, ?>> beans = new HashSet<AbstractBean<?,
?>>();
createBean(BeanFactory.createSimpleBean(Transaction.class, manager), beans);
- createBean(BeanFactory.createSimpleBean(ManagerImpl.class, manager), beans);
+ createBean(new SimpleBean<ManagerImpl>(ManagerImpl.class, manager)
+ {
+
+ @Override
+ public ManagerImpl create()
+ {
+ return manager;
+ }
+
+ }, beans);
return beans;
}