문제

Is it ok to implement other custom interfaces for a CDI or JSF session scoped bean.

도움이 되었습니까?

해결책

Yes, it is. And it's even desired in the case of CDI because you can have an interface which represents some service and than have multiple implementations of this service. Each implementation can have it's own qualifier and can be injected into the client by this qualifier, thus hiding it's actual implementation.

다른 팁

Yes, managed bean can implement custom interface.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top