[webbeans-commits] Webbeans SVN: r63 - ri/trunk/webbeans-impl/src/main/java/org/jboss/webbeans/bindings.
by webbeans-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2008-08-05 19:04:16 -0400 (Tue, 05 Aug 2008)
New Revision: 63
Added:
ri/trunk/webbeans-impl/src/main/java/org/jboss/webbeans/bindings/ApplicationScopedBinding.java
Log:
application scoped dynamic binding
Added: ri/trunk/webbeans-impl/src/main/java/org/jboss/webbeans/bindings/ApplicationScopedBinding.java
===================================================================
--- ri/trunk/webbeans-impl/src/main/java/org/jboss/webbeans/bindings/ApplicationScopedBinding.java (rev 0)
+++ ri/trunk/webbeans-impl/src/main/java/org/jboss/webbeans/bindings/ApplicationScopedBinding.java 2008-08-05 23:04:16 UTC (rev 63)
@@ -0,0 +1,9 @@
+package org.jboss.webbeans.bindings;
+
+import javax.webbeans.ApplicationScoped;
+import javax.webbeans.DynamicBinding;
+
+public class ApplicationScopedBinding extends DynamicBinding<ApplicationScoped> implements ApplicationScoped
+{
+
+}
Property changes on: ri/trunk/webbeans-impl/src/main/java/org/jboss/webbeans/bindings/ApplicationScopedBinding.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
16 years, 3 months
[webbeans-commits] Webbeans SVN: r62 - ri/trunk/webbeans-impl/src/main/java/org/jboss/webbeans.
by webbeans-commits@lists.jboss.org
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)
16 years, 3 months
[webbeans-commits] Webbeans SVN: r61 - ri/trunk/webbeans-impl/src/main/java/org/jboss/webbeans.
by webbeans-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2008-08-05 19:03:33 -0400 (Tue, 05 Aug 2008)
New Revision: 61
Modified:
ri/trunk/webbeans-impl/src/main/java/org/jboss/webbeans/BasicContext.java
Log:
Use Class<? extends Annotation>
Modified: ri/trunk/webbeans-impl/src/main/java/org/jboss/webbeans/BasicContext.java
===================================================================
--- ri/trunk/webbeans-impl/src/main/java/org/jboss/webbeans/BasicContext.java 2008-07-22 16:56:34 UTC (rev 60)
+++ ri/trunk/webbeans-impl/src/main/java/org/jboss/webbeans/BasicContext.java 2008-08-05 23:03:33 UTC (rev 61)
@@ -17,9 +17,9 @@
public class BasicContext implements Context
{
private Map<ComponentInstance<?>, Object> values;
- private Class<Annotation> scopeType;
+ private Class<? extends Annotation> scopeType;
- public BasicContext(Class<Annotation> scopeType)
+ public BasicContext(Class<? extends Annotation> scopeType)
{
this.scopeType = scopeType;
values = new HashMap<ComponentInstance<?>,Object>();
@@ -47,7 +47,7 @@
return instance;
}
- public Class<Annotation> getScopeType()
+ public Class<? extends Annotation> getScopeType()
{
return scopeType;
}
16 years, 3 months