org.apache.myfaces.extensions.validator.core.factory
Interface ClassMappingFactory<P,R>

Type Parameters:
P - source type
R - target type
All Known Implementing Classes:
AbstractRenderKitWrapperFactory, DefaultMessageResolverFactory, DefaultMetaDataTransformerFactory, DefaultRenderKitWrapperFactory, DefaultStorageManagerFactory, DefaultValidationParameterFactory, DefaultValidationStrategyFactory, GenericRenderKitWrapperFactory

public interface ClassMappingFactory<P,R>

Class mapping factories create a result based on a given instance. Most factories use the NameMapper facility to determine the type of the result.

Since:
1.x.1
Author:
Gerhard Petracek

Method Summary
 R create(P source)
          Creates an instance of the target type based on the source type.
 

Method Detail

create

R create(P source)
Creates an instance of the target type based on the source type. Example: DefaultMetaDataTransformerFactory creates a MetaDataTransformer for a given ValidationStrategy.

Parameters:
source - source object
Returns:
target object.


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