Provide a way for PropertyAccessors to actually receive Hints
-------------------------------------------------------------
Key: GEOT-1274
URL: http://jira.codehaus.org/browse/GEOT-1274
Project: GeoTools
Issue Type: Improvement
Components: core filter
Affects Versions: 2.4.M2
Reporter: Gabriel Roldán
Assignee: Gabriel Roldán
Fix For: 2.4.M3
PropertyAccesors conform the layer of indirection AttributeExpressions use to
access properties of a given object at runtime.
The lookup of the propper PropertyAccessor for a given object is made through
the usual factory lookup mechanism, and they can receive a Hints object. This
is an object the client code may use to state some desired behavior it expects
the object being looked for to have.
Right now, when an AttributeExpression is asked to evaluate a given object, it
always pass {null} as hints, so there's actually nothing one can do to control
how to evaluate the kind of objects in question...
The natural mechanism to solve this seems to be to be able of passing Hints to
the FilterFactory, which should get propagated to the AttributeExpressions is
builds and in turn to the PropertyExtractors they looks for.
That way, for example, namespace aware filter evaluation can be built with no
impact in the current api and implementation, as one can pass the namespaces
"context" to the FilterFactory through Hints, and then just code a
PropertyExtractor that knows how to handle namespace aware property extraction
by using the prefix:namespace mappings or "context" passed through Hints.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel