org.apache.myfaces.extensions.validator.core.storage.mapper
Class DefaultMappedConstraintSourceStorageNameMapper

java.lang.Object
  extended by org.apache.myfaces.extensions.validator.core.storage.mapper.DefaultMappedConstraintSourceStorageNameMapper
All Implemented Interfaces:
NameMapper<String>

@InvocationOrder(value=100)
public class DefaultMappedConstraintSourceStorageNameMapper
extends Object
implements NameMapper<String>

use a public class to allow optional deregistration

Since:
r4
Author:
Gerhard Petracek

Constructor Summary
DefaultMappedConstraintSourceStorageNameMapper()
           
 
Method Summary
 String createName(String source)
          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

DefaultMappedConstraintSourceStorageNameMapper

public DefaultMappedConstraintSourceStorageNameMapper()
Method Detail

createName

public String createName(String source)
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.

Specified by:
createName in interface NameMapper<String>
Parameters:
source - 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.