org.apache.myfaces.extensions.validator.core.metadata.extractor
Class DefaultComponentMetaDataExtractorFactory

java.lang.Object
  extended by org.apache.myfaces.extensions.validator.core.metadata.extractor.DefaultComponentMetaDataExtractorFactory
All Implemented Interfaces:
ComponentMetaDataExtractorFactory

public class DefaultComponentMetaDataExtractorFactory
extends Object
implements ComponentMetaDataExtractorFactory

This factory creates a meta-data extractor which extracts the meta-data of the value binding of a component.

order:

  1. configured meta-data extractor (web.xml)
  2. configured meta-data extractor (information provider bean)
  3. default implementation

Since:
1.x.1

Constructor Summary
DefaultComponentMetaDataExtractorFactory()
           
 
Method Summary
 MetaDataExtractor create()
          Creates a stateless extractor which extracts meta-data.
 MetaDataExtractor createWith(Map<String,Object> properties)
          Creates a stateless extractor which extracts meta-data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultComponentMetaDataExtractorFactory

public DefaultComponentMetaDataExtractorFactory()
Method Detail

create

public MetaDataExtractor create()
Description copied from interface: ComponentMetaDataExtractorFactory
Creates a stateless extractor which extracts meta-data. The factory should cache the result instance for performance reasons.

Specified by:
create in interface ComponentMetaDataExtractorFactory
Returns:
a stateless extractor which extracts meta-data

createWith

public MetaDataExtractor createWith(Map<String,Object> properties)
Description copied from interface: ComponentMetaDataExtractorFactory
Creates a stateless extractor which extracts meta-data. The factory should cache the result instance for performance reasons.

Specified by:
createWith in interface ComponentMetaDataExtractorFactory
Parameters:
properties - Properties which should be added to the resulting PropertyInformation - e.g. meta-information about the current validation module.
Returns:
a stateless extractor which extracts meta-data


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