Skip to content

Commit

Permalink
WELD-78
Browse files Browse the repository at this point in the history
  • Loading branch information
pmuir committed Jan 11, 2010
1 parent 2b3e1c9 commit bc3ecf4
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions impl/src/main/java/org/jboss/weld/bean/AbstractReceiverBean.java
Expand Up @@ -41,7 +41,6 @@ public abstract class AbstractReceiverBean<X, T, S extends Member> extends Abstr
private static final LocLogger log = loggerFactory().getLogger(BEAN);

private AbstractClassBean<X> declaringBean;
private boolean policy;

public AbstractReceiverBean(String idSuffix, AbstractClassBean<X> declaringBean, BeanManagerImpl manager)
{
Expand Down Expand Up @@ -95,29 +94,20 @@ public AbstractClassBean<X> getDeclaringBean()
return declaringBean;
}

/* (non-Javadoc)
* @see org.jboss.weld.bean.AbstractBean#isPolicy()
*/
@Override
public boolean isAlternative()
{
return policy;
}

@Override
protected void initAlternative()
{
if (getDeclaringBean().isAlternative())
{
this.policy = true;
super.alternative = true;
}
else if (getWeldAnnotated().isAnnotationPresent(Alternative.class))
{
this.policy = true;
super.alternative = true;
}
else if (getMergedStereotypes().isAlternative())
{
this.policy = true;
super.alternative = true;
}
}

Expand Down

0 comments on commit bc3ecf4

Please sign in to comment.