My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
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
Status:  Fixed
Owner:  gal.dol...@gmail.com
Closed:  Apr 2011


 
Project Member Reported by gal.dol...@gmail.com, Apr 1, 2011
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
(No comment was entered for this change.)
Status: Fixed

Powered by Google Project Hosting