[webbeans-commits] Webbeans SVN: r62 - ri/trunk/webbeans-impl/src/main/java/org/jboss/webbeans.

webbeans-commits at lists.jboss.org webbeans-commits at lists.jboss.org
Tue Aug 5 19:04:03 EDT 2008


Author: pete.muir at jboss.org
Date: 2008-08-05 19:04:03 -0400 (Tue, 05 Aug 2008)
New Revision: 62

Modified:
   ri/trunk/webbeans-impl/src/main/java/org/jboss/webbeans/ContainerImpl.java
Log:
storage of component models (temp solution)

Modified: ri/trunk/webbeans-impl/src/main/java/org/jboss/webbeans/ContainerImpl.java
===================================================================
--- ri/trunk/webbeans-impl/src/main/java/org/jboss/webbeans/ContainerImpl.java	2008-08-05 23:03:33 UTC (rev 61)
+++ ri/trunk/webbeans-impl/src/main/java/org/jboss/webbeans/ContainerImpl.java	2008-08-05 23:04:03 UTC (rev 62)
@@ -2,6 +2,7 @@
 
 import java.lang.annotation.Annotation;
 import java.util.ArrayList;
+import java.util.HashSet;
 import java.util.List;
 import java.util.Set;
 
@@ -23,11 +24,14 @@
    private StereotypeManager stereotypeManager;
    private EjbManager ejbLookupManager;
    
+   private Set<ComponentInstance> components;
+   
    public ContainerImpl(List<Annotation> enabledDeploymentTypes)
    {
       initEnabledDeploymentTypes(enabledDeploymentTypes);
       this.stereotypeManager = new StereotypeManager();
       this.ejbLookupManager = new EjbManager();
+      this.components = new HashSet<ComponentInstance>();
    }
    
    private void initEnabledDeploymentTypes(List<Annotation> enabledDeploymentTypes)
@@ -50,8 +54,8 @@
 
    public Container addComponent(ComponentInstance component)
    {
-      // TODO Auto-generated method stub
-      return null;
+      components.add(component);
+      return this;
    }
 
    public void addContext(Context context)




More information about the weld-commits mailing list