org.apache.myfaces.extensions.validator.core.factory
Class AbstractNameMapperAwareFactory<T>

java.lang.Object
  extended by org.apache.myfaces.extensions.validator.core.factory.AbstractNameMapperAwareFactory<T>
All Implemented Interfaces:
NameMapperAwareFactory<NameMapper<T>>
Direct Known Subclasses:
AbstractStorageManager, DefaultMessageResolverFactory, DefaultMetaDataTransformerFactory, DefaultStorageManagerFactory, DefaultValidationStrategyFactory

public abstract class AbstractNameMapperAwareFactory<T>
extends Object
implements NameMapperAwareFactory<NameMapper<T>>

Default implementation of a NameMapperAwareFactory where the concrete implementation is responsible for the storage of the list of nameMappers.

Since:
1.x.2

Constructor Summary
AbstractNameMapperAwareFactory()
           
 
Method Summary
 void deny(Class<? extends NameMapper> classToDeny)
          Deregisters existing NameMappers of the given type and deny the type for NameMapper which might be added later on.
 void deregister(Class<? extends NameMapper> classToDeregister)
          Removes all NameMappers of the given type.
protected  Comparator<NameMapper<T>> getComparator()
           
protected abstract  List<NameMapper<T>> getNameMapperList()
           
 void register(NameMapper<T> nameMapper)
          Registers a new NameMapper which should be used for the mapping process.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractNameMapperAwareFactory

public AbstractNameMapperAwareFactory()
Method Detail

register

public void register(NameMapper<T> nameMapper)
Description copied from interface: NameMapperAwareFactory
Registers a new NameMapper which should be used for the mapping process. It will be used if it isn't denied.

Specified by:
register in interface NameMapperAwareFactory<NameMapper<T>>
Parameters:
nameMapper - NameMapper to add

getComparator

protected Comparator<NameMapper<T>> getComparator()

deregister

public void deregister(Class<? extends NameMapper> classToDeregister)
Description copied from interface: NameMapperAwareFactory
Removes all NameMappers of the given type.

Specified by:
deregister in interface NameMapperAwareFactory<NameMapper<T>>
Parameters:
classToDeregister - nameMapper to remove.

deny

public void deny(Class<? extends NameMapper> classToDeny)
Description copied from interface: NameMapperAwareFactory
Deregisters existing NameMappers of the given type and deny the type for NameMapper which might be added later on.

Specified by:
deny in interface NameMapperAwareFactory<NameMapper<T>>
Parameters:
classToDeny - NameMapper to deny

getNameMapperList

protected abstract List<NameMapper<T>> getNameMapperList()


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