이 작동하지 않습니다 일반 유형을 @ 삽입 할 수 있습니까?
@Inject
private MyBBean<OtherBBean> myBean;
가 작동해야 또는 그냥 잘못
이 작업을 수행하려고? 는이 오류를 얻을 :Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied dependencies for type [MyBBean<OtherBBean>] with qualifiers [@Default] at injection point [[field] @Inject private com.my.project.beans.jsf.BreakBBean.myBBean]
편집 : 은 더 많은 정보를 추가 :
@Named(value="org")
@SessionScoped
public class OrgBBean extends MainViewBase<Org> implements Serializable {
private static final long serialVersionUID = 1L;
@Inject
private OtherBBean otherBBean;
}
@Named
@Dependent
public class OtherBBean extends OrgTabMemberBBean<Other> implements Serializable {
private static final long serialVersionUID = 1L;
@Inject
private MyBBean<OtherBBean> myBBean;
}
@Named
@Dependent
public class MyBBean <O extends EditableBase<? extends BaseEntity>> extends EditableTabListBBean<My, O> implements Serializable {
private static final long serialVersionUID = 1L;
}
나는 코드를 게시했다. – Pierre