| Issue 35: | Add preprocessor support for guit service methods. This should be done by aop, but you don't get injection with aop! | |
| 1 person starred this issue and may be notified of changes. | Back to list |
public class LoginValidation implements GuitServicePreprocesor {
@Inject
LoginHelper loginHelper;
@Override
public void run() {
if (!loginHelper.isLogged()) {
throw new LoginException();
}
}
}
@GuitServiceAnnotation(LoginValidator.class)
@Retention(RUNTIME)
@Target(Method)
public @interface LoginRequired {
}
@GuitService
public interface AdministrationService {
...
@LoginRequired
void destroySystem();
}
Apr 3, 2011
Project Member
#1
gal.dol...@gmail.com
Status:
Fixed
|