Update of /cvsroot/metamorphosis/ruper2/src/java/core/org/krysalis/ruper
In directory sc8-pr-cvs1:/tmp/cvs-serv17841/src/java/core/org/krysalis/ruper
Modified Files:
ResourceUpdater.java
Log Message:
Protocol mgr made as a handler mgr to manage the provider selection through
the selectors.
And tested the full cycle for FileUpdater working
Index: ResourceUpdater.java
===================================================================
RCS file: /cvsroot/metamorphosis/ruper2/src/java/core/org/krysalis/ruper/ResourceUpdater.java,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** ResourceUpdater.java 16 Sep 2003 20:40:33 -0000 1.16
--- ResourceUpdater.java 18 Sep 2003 20:15:40 -0000 1.17
***************
*** 8,11 ****
--- 8,12 ----
import java.util.List;
+ import org.krysalis.ruper.config.RuperConfig;
import org.krysalis.ruper.impl.ReferenceManager;
import org.krysalis.ruper.impl.ResourceUpdaterContext;
***************
*** 56,59 ****
--- 57,63 ----
private void initRepository() {
+ //configure from the XML file
+ RuperConfig.configure();
+
// initialize the repository
m_repositoryManager = new RepositoryManager();
***************
*** 124,127 ****
--- 128,136 ----
ResourceQuery query = request.getQuery();
+ return query(query);
+ }
+
+ public ResourceResult query(ResourceQuery query) throws RuperException {
+
// delegate the work to the repository manager to sort the repositories
// based on the query
***************
*** 131,141 ****
List wrappers = getRepositoryWrappers(repositorySet.getRepositories());
- return m_engine.query(wrappers, query);
- }
-
- public ResourceResult query(ResourceQuery query) throws RuperException {
-
- List wrappers =
- getRepositoryWrappers(query.getRepositorySet().getRepositories());
return m_engine.query(wrappers, query);
}
--- 140,143 ----
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.