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

webbeans-commits at lists.jboss.org webbeans-commits at lists.jboss.org
Mon Jan 12 11:17:02 EST 2009


Author: gavin.king at jboss.com
Date: 2009-01-12 11:17:02 -0500 (Mon, 12 Jan 2009)
New Revision: 892

Modified:
   ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/injection/InjectionPointImpl.java
Log:
ditch getInstance()

Modified: ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/injection/InjectionPointImpl.java
===================================================================
--- ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/injection/InjectionPointImpl.java	2009-01-12 16:16:40 UTC (rev 891)
+++ ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/injection/InjectionPointImpl.java	2009-01-12 16:17:02 UTC (rev 892)
@@ -44,7 +44,6 @@
 {
    private final AnnotatedMember<?, ?> memberInjectionPoint;
    private final Bean<?> bean;
-   private final Object beanInstance;
 
    /**
     * Creates a new metadata bean for the given injection point information.
@@ -53,16 +52,15 @@
     * @param bean The bean being injected
     * @param beanInstance The instance of the bean being injected
     */
-   public InjectionPointImpl(AnnotatedMember<?, ?> injectedMember, Bean<?> bean, Object beanInstance)
+   public InjectionPointImpl(AnnotatedMember<?, ?> injectedMember, Bean<?> bean)
    {
       this.memberInjectionPoint = injectedMember;
       this.bean = bean;
-      this.beanInstance = beanInstance;
    }
 
    public static InjectionPointImpl of(AnnotatedMember<?, ?> member)
    {
-      return new InjectionPointImpl(member, null, null);
+      return new InjectionPointImpl(member, null);
    }
 
    public boolean isField()
@@ -105,11 +103,6 @@
       return this.memberInjectionPoint.getBindingTypes();
    }
 
-   public Object getInstance()
-   {
-      return this.beanInstance;
-   }
-
    public Member getMember()
    {
       return this.memberInjectionPoint.getMember();




More information about the weld-commits mailing list