I want to set the visibility of vaadin components (e.g. Textfield) through interception (using AspectJ) in compile and runtime.
My custom annotation is called @ShowVisibility
to identify the textfields.
@ShowVisibility
TextField textField;
It works quite well.
I wanted to use aspects to control if programmaticaly the visibility of the component has changed and if it is granted or not.
@Before("execution(* com.vaadin.ui.AbstractComponent.setVisible(..))")
public void injectSecurityBefore(JoinPoint joinPoint) {
}
How can i realize that?