ActionValidator.@Deprecated public interface ActionValidator
DispatchService
implementation so that it can check whether or
not the action can be executed. Doing so will often requiring session
information, which can be done by injecting a Provider<HttpSession>
into the validator and calling httpSessionProvider.get() within the
isValid(com.gwtplatform.dispatch.shared.Action<? extends com.gwtplatform.dispatch.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.