[weld-commits] Weld SVN: r6417 - extensions/trunk/src/main/java/org/jboss/weld/extensions/managedproducer.
weld-commits at lists.jboss.org
weld-commits at lists.jboss.org
Wed Jun 9 06:43:22 EDT 2010
Author: swd847
Date: 2010-06-09 06:43:22 -0400 (Wed, 09 Jun 2010)
New Revision: 6417
Modified:
extensions/trunk/src/main/java/org/jboss/weld/extensions/managedproducer/ManagedProducerBean.java
extensions/trunk/src/main/java/org/jboss/weld/extensions/managedproducer/ManagedProducerInvocationHandler.java
Log:
minor
Modified: extensions/trunk/src/main/java/org/jboss/weld/extensions/managedproducer/ManagedProducerBean.java
===================================================================
--- extensions/trunk/src/main/java/org/jboss/weld/extensions/managedproducer/ManagedProducerBean.java 2010-06-09 03:43:02 UTC (rev 6416)
+++ extensions/trunk/src/main/java/org/jboss/weld/extensions/managedproducer/ManagedProducerBean.java 2010-06-09 10:43:22 UTC (rev 6417)
@@ -65,6 +65,10 @@
final private AnnotatedMethod<?> method;
+ private final static Annotation[] defaultQualifiers = { new AnnotationLiteral<Default>()
+ {
+ } };
+
public ManagedProducerBean(AnnotatedMethod<?> method, BeanManager manager)
{
this.method = method;
@@ -194,10 +198,7 @@
public M create(CreationalContext<M> creationalContext)
{
- Annotation[] quals = { new AnnotationLiteral<Default>()
- {
- } };
- Set<Bean<?>> beans = manager.getBeans(InjectionPoint.class, quals);
+ Set<Bean<?>> beans = manager.getBeans(InjectionPoint.class, defaultQualifiers);
Bean<?> injectionPointBean = (Bean<?>) beans.iterator().next();
InjectionPoint injectionPoint = (InjectionPoint) manager.getReference(injectionPointBean, InjectionPoint.class, creationalContext);
ManagedProducerInvocationHandler hdl = new ManagedProducerInvocationHandler(manager, this.method, this, injectionPoint);
Modified: extensions/trunk/src/main/java/org/jboss/weld/extensions/managedproducer/ManagedProducerInvocationHandler.java
===================================================================
--- extensions/trunk/src/main/java/org/jboss/weld/extensions/managedproducer/ManagedProducerInvocationHandler.java 2010-06-09 03:43:02 UTC (rev 6416)
+++ extensions/trunk/src/main/java/org/jboss/weld/extensions/managedproducer/ManagedProducerInvocationHandler.java 2010-06-09 10:43:22 UTC (rev 6417)
@@ -19,10 +19,7 @@
import java.lang.annotation.Annotation;
import java.lang.reflect.Method;
import java.lang.reflect.Type;
-import java.util.Collections;
-import java.util.HashMap;
import java.util.HashSet;
-import java.util.Map;
import java.util.Set;
import javassist.util.proxy.MethodHandler;
@@ -45,7 +42,6 @@
final private Method method;
final private Bean<?> bean;
final private InjectionPoint[] injectionPoints;
- final private Map<Method, Method> methods = Collections.synchronizedMap(new HashMap<Method, Method>());
final private Bean<?> mainClassBean;
final private InjectionPoint injectionPoint;
More information about the weld-commits
mailing list