If I work with JSF (version 1.2. or 2.0), I can manage JavaBean classes, which hold the methods and which are called or used by the JSF pages.
I can work with the faces-config.xml
or with @ManagedBean
annotation. Every way of solution has the problem, that I must refer concrete classes. In that way I build a hard reference on a specific class.
Exists a way of solution in JSF, to refer interfaces or abstract classes in faces-config.xml
or with @ManagedBean
annotation, which are implemented by a javabean. I mean the following: I won't refer concrete classes, I will refer a way of abstraction to give my application a way of possibility, to change or to grow with a suitable degree of maintenance.