
public interface ActionValidator
DispatchService implementation so that it can check
whether or not the action can be executed. Doing so will often require session information, which can be done by
injecting a Provider<HttpSession> into the validator and calling httpSessionProvider.get() within the
isValid(com.gwtplatform.dispatch.rpc.shared.Action<? extends com.gwtplatform.dispatch.rpc.shared.Result>) method.
You should think of annotating your validators with @RequestScoped or @Singleton.boolean isValid(Action<? extends Result> action) throws ActionException
Action can be executed at this time. You can also throw an
ActionException if you want to fine grain why the validator failed.action - The action that called this validator.true if the action can be executed, false otherwise.ActionExceptionCopyright © 2010-2014 ArcBees. All Rights Reserved.