org.apache.myfaces.extensions.validator.core.validation.strategy.mapper
Class SimpleAnnotationToValidationStrategyNameMapper

java.lang.Object
  extended by org.apache.myfaces.extensions.validator.core.validation.strategy.mapper.AbstractMetaDataToValidationStrategyNameMapper
      extended by org.apache.myfaces.extensions.validator.core.validation.strategy.mapper.SimpleAnnotationToValidationStrategyNameMapper
All Implemented Interfaces:
NameMapper<String>

@InvocationOrder(value=400)
public class SimpleAnnotationToValidationStrategyNameMapper
extends AbstractMetaDataToValidationStrategyNameMapper

It's an alternative Mapper to place Annotations and ValidationStrategies in the same package.

Since:
1.x.1
Author:
Gerhard Petracek

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

Constructor Detail

SimpleAnnotationToValidationStrategyNameMapper

public SimpleAnnotationToValidationStrategyNameMapper()
Method Detail

createName

public String createName(String metaDataKey)
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:
metaDataKey - Object for which the name must be created.
Returns:
name of the target resource or null if the source isn't supported.


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