GWTP Dispatch Server Base 0.6-redhat-1

com.gwtplatform.dispatch.server.actionhandlervalidator
Interface ActionHandlerValidatorRegistry

All Known Subinterfaces:
EagerActionHandlerValidatorRegistry, LazyActionHandlerValidatorRegistry
All Known Implementing Classes:
AbstractEagerActionHandlerValidatorRegistryImpl

public interface ActionHandlerValidatorRegistry

Registry definition for ActionValidator.

Author:
Christian Goudreau

Method Summary
 void clearActionHandlerValidators()
          Clears all registered ActionValidator from the registry.
<A extends Action<R>,R extends Result>
ActionHandlerValidatorInstance
findActionHandlerValidator(A action)
          Searches the registry and returns the first ActionValidator which supports the specified Action , or null if none is available.
 ActionValidator findActionValidator(Class<? extends ActionValidator> actionValidatorClass)
          Searches the registry for already bound ActionValidator class and return the instance or null if none is available.
 

Method Detail

clearActionHandlerValidators

void clearActionHandlerValidators()
Clears all registered ActionValidator from the registry.


findActionHandlerValidator

<A extends Action<R>,R extends Result> ActionHandlerValidatorInstance findActionHandlerValidator(A action)
Searches the registry and returns the first ActionValidator which supports the specified Action , or null if none is available.

Type Parameters:
A - Type of associated Action
R - Type of associated Result
Parameters:
action - The Action
Returns:
The ActionValidator

findActionValidator

ActionValidator findActionValidator(Class<? extends ActionValidator> actionValidatorClass)
Searches the registry for already bound ActionValidator class and return the instance or null if none is available.

Parameters:
actionValidatorClass - The Action
Returns:

GWTP Dispatch Server Base 0.6-redhat-1

Copyright © 2010-2012 ArcBees. All Rights Reserved.