I've developed custom ActionListener:
public class SecureActionListener extends ActionListenerImpl implements ActionListener {
private ActionListener _delegate;
public SecureActionListener(ActionListener delegate) {
_delegate = delegate;
}
@Override
public void processAction(ActionEvent actionEvent) {
super.processAction(actionEvent);
}
}
and configured it like that:
<application>
<action-listener>
com.example.SecureActionListener
</action-listener>
</application>
Can this SecureActionListener class be expanded in such a way as to allow to read backing bean method signature together with its annotations?
I want this SecureActionListener to throw exception when there is a call to a backing bean method annotated with @Secured(roleName) and user has not required role.