Packageorg.spicefactory.parsley.core.view.util
Classpublic class ViewDefinitionLookup
InheritanceViewDefinitionLookup Inheritance Object

Utility for fetching matching ObjectDefinitions from the Context for a particular target instance.



Public Methods
 MethodDefined By
  
[static] Looks for an ObjectDefinition that matches for the specified view configuration.
ViewDefinitionLookup
Method Detail
findMatchingDefinition()method
public static function findMatchingDefinition(config:ViewConfiguration, context:Context):DynamicObjectDefinition

Looks for an ObjectDefinition that matches for the specified view configuration. Can be used by ViewProcessors and other objects in case the definition has not been explicitly specified on the view configuration.

Parameters

config:ViewConfiguration — the view configuration to find the matching definition for
 
context:Context — the Context to use for looking up the definition

Returns
DynamicObjectDefinition — a definition matching the specified view configuration or null if no such definition exists