Revision: 1822
Author: [email protected]
Date: Sun Jan 10 04:53:57 2010
Log: Add a note to refactor this implementation. The UI should not be aware
of the back end implementation of the repository.
That's why we have interfaces for the UI and REST modules to work against.
http://code.google.com/p/simal/source/detail?r=1822
Modified:
/trunk/uk.ac.osswatch.simal.web/src/main/java/uk/ac/osswatch/simal/wicket/SparqlQueryPage.java
=======================================
---
/trunk/uk.ac.osswatch.simal.web/src/main/java/uk/ac/osswatch/simal/wicket/SparqlQueryPage.java
Fri Jan 8 09:33:39 2010
+++
/trunk/uk.ac.osswatch.simal.web/src/main/java/uk/ac/osswatch/simal/wicket/SparqlQueryPage.java
Sun Jan 10 04:53:57 2010
@@ -106,6 +106,7 @@
SparqlResult result = null;
try {
ISimalRepository repo = UserApplication.getRepository();
+ // @REFACTOR the UI application should not be aware of the back end
implementation.
if (repo instanceof JenaSimalRepository) {
result = ((JenaSimalRepository)
repo).getSparqlQueryResult(sparqlQuery);
}
--
You received this message because you are subscribed to the Google Groups
"Simal Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/simal-commits?hl=en.