today I have done this
.
I was using a mix of WASP and a custom AuthStrategy. Today I migrated
to 1.4 so I completely remove WASP. Now I have my
AuthorizationStrategy impl with this code:
public boolean isInstantiationAuthorized(Class componentClass) {
if (componentClass.isAnnotationPresent(
there is no mechanism in pure java that would allow us to intercept an
instantiation and execute something before that. we could do that with
aop but that would force whatever aop solution we choose into your
projects.
so we do the next best thing, we call the auth strategy from the Page
construct