Suppose you have 2 controllers:
Ahas@Beforeor other controller action injection annotations,Bget annotated with@With(A.class)
A has @Before or other controller action injection annotations, and you annotate B with @With(A.class), then allAll those injection actionactions defined in AA will be effective when calling B'sB's action methods.
It's same as inheritance but avoid the limitationkind of inheritance, say. However with inheritance you can extendsextend at most one another class. But you can do @With({A.class, Z.class, ...})@With({A.class, Z.class, ...})