ZPT-Sharp
v1.0.0
Zope Page Templates for .NET
|
Simple implementation of IExpressionEvaluator which keeps a collection of the available evaluators in an IDictionary
, indexed by their applicable prefixes.
More...
Public Member Functions | |
virtual IExpressionEvaluator | GetEvaluator (Expression expression) |
Gets an evaluator implementation suitable for a given expression. More... | |
IExpressionEvaluator | GetEvaluator< TEvaluator > () |
Gets an expression evaluator matching a desired type. More... | |
IExpressionEvaluator | GetEvaluator (Type evaluatorType) |
Gets an expression evaluator matching a desired type. More... | |
SimpleEvaluatorSelector (IExpressionEvaluatorService registry=null) | |
Initializes a new instance of the CSF.Zpt.Tales.SimpleEvaluatorSelector class. More... | |
Properties | |
virtual IExpressionEvaluatorService | EvaluatorRegistry [get] |
Gets the expression evaluator registry instance. More... | |
Simple implementation of IExpressionEvaluator which keeps a collection of the available evaluators in an IDictionary
, indexed by their applicable prefixes.
|
inline |
Initializes a new instance of the CSF.Zpt.Tales.SimpleEvaluatorSelector class.
registry | An expression evaluator registry. |
|
inlinevirtual |
Gets an evaluator implementation suitable for a given expression.
expression | The expression. |
Implements CSF.Zpt.Tales.IEvaluatorSelector.
|
inline |
Gets an expression evaluator matching a desired type.
evaluatorType | The desired evaluator type. |
Implements CSF.Zpt.Tales.IEvaluatorSelector.
|
inline |
Gets an expression evaluator matching a desired type.
TEvaluator | The desired evaluator type. |
Implements CSF.Zpt.Tales.IEvaluatorSelector.
TEvaluator | : | IExpressionEvaluator |
|
getprotected |
Gets the expression evaluator registry instance.
This is lazily initialised, because instances of SimpleEvaluatorSelector might be initialised by types which are registered with the individual evaluators. Thus, in order to avoid a scenario in which we are referencing the default registry before it has finished constructing, we ensure that we don't touch it until we need it.
The evaluator registry.