If you have a managed bean (annotation @ManagedBean), how could you intercept only the public methods of this bean?
The motivation for this would be as follows, suppose you have a ControllerBean bean that can be accessed from an xhtml page. But, you wanted that when any public method of this bean was accessed, it would go through another method before it would check whether the user is allowed to access that area or not. If it does not, that area would not be accessed.
How can we do this? Could someone give me a working example?