Вопрос

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