org.apache.myfaces.extensions.validator.core.factory
Interface FactoryFinder

All Known Implementing Classes:
DefaultFactoryFinder

public interface FactoryFinder

Structure for the object that is able to locate the different factories within the ExtVal Framework.

Since:
1.x.1

Method Summary
<T> T
getFactory(FactoryNames factoryName, Class<T> targetClass)
          Retrieves the default or configured factory.
 

Method Detail

getFactory

<T> T getFactory(FactoryNames factoryName,
                 Class<T> targetClass)
Retrieves the default or configured factory. It is instantiated the first time and retrieved from a cache in the subsequent requests.

Type Parameters:
T - generic type parameter
Parameters:
factoryName - The name of the factory we want to retrieve.
targetClass - The class type the factory needs to be casted to.
Returns:
Factory instance, can never be null.


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