Skip to content

Commit

Permalink
ditch getInstance()
Browse files Browse the repository at this point in the history
git-svn-id: http://anonsvn.jboss.org/repos/weld/ri/trunk@892 1c488680-804c-0410-94cd-c6b725194a0e
  • Loading branch information
Gavin King authored and gavin.king@gmail.com committed Jan 12, 2009
1 parent 96a1d81 commit fde8cec
Showing 1 changed file with 2 additions and 9 deletions.
Expand Up @@ -44,7 +44,6 @@ public class InjectionPointImpl implements InjectionPoint
{
private final AnnotatedMember<?, ?> memberInjectionPoint;
private final Bean<?> bean;
private final Object beanInstance;

/**
* Creates a new metadata bean for the given injection point information.
Expand All @@ -53,16 +52,15 @@ public class InjectionPointImpl implements InjectionPoint
* @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()
Expand Down Expand Up @@ -105,11 +103,6 @@ public Set<Annotation> getBindingTypes()
return this.memberInjectionPoint.getBindingTypes();
}

public Object getInstance()
{
return this.beanInstance;
}

public Member getMember()
{
return this.memberInjectionPoint.getMember();
Expand Down

0 comments on commit fde8cec

Please sign in to comment.