org.apache.myfaces.extensions.validator.core.initializer.configuration
Class StaticInMemoryConfiguration

java.lang.Object
  extended by org.apache.myfaces.extensions.validator.core.initializer.configuration.StaticInMemoryConfiguration
All Implemented Interfaces:
StaticConfiguration<String,String>

public class StaticInMemoryConfiguration
extends Object
implements StaticConfiguration<String,String>

Implementation of the StaticConfiguration interface for in-memory configs. It's an implementation which helps to create custom config approaches easily.

Since:
1.x.1

Constructor Summary
StaticInMemoryConfiguration()
           
 
Method Summary
 void addMapping(String source, String target)
           
 List<StaticConfigurationEntry<String,String>> getMapping()
          Returns all config entries found in the specified config.
 void setSourceOfMapping(String path)
          Specify the location where the configuration can be found.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StaticInMemoryConfiguration

public StaticInMemoryConfiguration()
Method Detail

setSourceOfMapping

public void setSourceOfMapping(String path)
Description copied from interface: StaticConfiguration
Specify the location where the configuration can be found.

Specified by:
setSourceOfMapping in interface StaticConfiguration<String,String>
Parameters:
path - file location of the configuration.

getMapping

public List<StaticConfigurationEntry<String,String>> getMapping()
Description copied from interface: StaticConfiguration
Returns all config entries found in the specified config.

Specified by:
getMapping in interface StaticConfiguration<String,String>
Returns:
List of configuration entries.

addMapping

public void addMapping(String source,
                       String target)


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