org.apache.myfaces.extensions.validator.core.validation.message.resolver.mapper
Class DefaultValidationStrategyToMsgResolverNameMapper

java.lang.Object
  extended by org.apache.myfaces.extensions.validator.core.validation.message.resolver.mapper.AbstractValidationStrategyToMsgResolverNameMapper
      extended by org.apache.myfaces.extensions.validator.core.validation.message.resolver.mapper.DefaultValidationStrategyToMsgResolverNameMapper
All Implemented Interfaces:
NameMapper<ValidationStrategy>
Direct Known Subclasses:
DefaultModuleValidationStrategyToMsgResolverNameMapper, SimpleValidationStrategyToMsgResolverNameMapper

@InvocationOrder(value=300)
public class DefaultValidationStrategyToMsgResolverNameMapper
extends AbstractValidationStrategyToMsgResolverNameMapper

Default implementation which maps ExtVal ValidationStrategies to ExtVal MessageResolvers.

Since:
1.x.1
Author:
Gerhard Petracek

Field Summary
 
Fields inherited from class org.apache.myfaces.extensions.validator.core.validation.message.resolver.mapper.AbstractValidationStrategyToMsgResolverNameMapper
logger
 
Constructor Summary
DefaultValidationStrategyToMsgResolverNameMapper()
           
 
Method Summary
 String createName(ValidationStrategy validationStrategy)
          Returns the name of the target resource for the given source or null if the implementations isn't responsible to map the given instance.
protected  String getClassName(String strategyClassName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultValidationStrategyToMsgResolverNameMapper

public DefaultValidationStrategyToMsgResolverNameMapper()
Method Detail

createName

public String createName(ValidationStrategy validationStrategy)
Description copied from interface: NameMapper
Returns the name of the target resource for the given source or null if the implementations isn't responsible to map the given instance.

Parameters:
validationStrategy - Object for which the name must be created.
Returns:
name of the target resource or null if the source isn't supported.

getClassName

protected String getClassName(String strategyClassName)


Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.