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

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

public interface ClassMappingFactory<P,R>

A structure of a factory that creates classes of the target type R for a certain source class of type P. Most factories uses the NameMapper facility to configure the type of objects that should be returned.

Since:
1.x.1
Author:
Gerhard Petracek

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

Method Detail

create

R create(P source)
Create an instance of the target type based on the source type. An example is the DefaultMetaDataTransformerFactory that creates a metaDataTransformer for a certain ValidationStrategy.

Parameters:
source - source type to be used.
Returns:
target object.


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