org.apache.myfaces.extensions.validator.core.factory
Interface FactoryFinder
- All Known Implementing Classes:
- DefaultFactoryFinder
public interface FactoryFinder
Factory which is responsible to provide factories which are used by the framework.
An implementation should provide the possibility to use custom factory implementations.
- Since:
- 1.x.1
- Author:
- Gerhard Petracek
getFactory
<T> T getFactory(FactoryNames factoryName,
Class<T> targetClass)
- Resolves a cached factory for the given factory name.
- 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-2010 The Apache Software Foundation. All Rights Reserved.