org.tynamo.services
Class TynamoDataTypeAnalyzer

java.lang.Object
  extended by org.tynamo.services.TynamoDataTypeAnalyzer
All Implemented Interfaces:
org.apache.tapestry5.services.DataTypeAnalyzer

public class TynamoDataTypeAnalyzer
extends Object
implements org.apache.tapestry5.services.DataTypeAnalyzer


Constructor Summary
TynamoDataTypeAnalyzer(DescriptorService descriptorService, List<Pair> editorMap, org.slf4j.Logger logger)
           
 
Method Summary
 String identifyDataType(org.apache.tapestry5.ioc.services.PropertyAdapter adapter)
          The first data type identifier in the editorMap whose "key" evaluates to true for the descriptor will be used to load an editor (or display) block for the descriptor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TynamoDataTypeAnalyzer

public TynamoDataTypeAnalyzer(DescriptorService descriptorService,
                              List<Pair> editorMap,
                              org.slf4j.Logger logger)
Parameters:
descriptorService -
editorMap - A map where the keys are OGNL expressions and the values are data type identifier used to select editor (or display) blocks
Method Detail

identifyDataType

public String identifyDataType(org.apache.tapestry5.ioc.services.PropertyAdapter adapter)
The first data type identifier in the editorMap whose "key" evaluates to true for the descriptor will be used to load an editor (or display) block for the descriptor. Returns null if no match is found.

Specified by:
identifyDataType in interface org.apache.tapestry5.services.DataTypeAnalyzer
Returns:
returns the data type identifier, if known, or returns null if not known.


Copyright © 2004-2009. All Rights Reserved.