Author: pete.muir(a)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)
Show replies by date