protected void addDBRefSourceImpl(Class dbSourceProxy)\r
throws java.lang.IllegalArgumentException\r
{\r
+ DbSourceProxy proxy = null; \r
try\r
{\r
Object proxyObj = dbSourceProxy.getConstructor(\r
dbSourceProxy.toString()\r
+ " does not implement the jalview.ws.seqfetcher.DbSourceProxy");\r
}\r
- DbSourceProxy proxy = (DbSourceProxy) proxyObj; \r
- if (proxy != null)\r
- {\r
- if (FETCHABLEDBS == null)\r
- {\r
- FETCHABLEDBS = new Hashtable();\r
- }\r
- FETCHABLEDBS.put(proxy.getDbSource(), proxy);\r
- }\r
+ proxy = (DbSourceProxy) proxyObj;\r
} \r
catch (IllegalArgumentException e)\r
{\r
// Serious problems if this happens.\r
throw new Error("DBRefSource Implementation Exception", e);\r
}\r
+ addDbRefSourceImpl(proxy);\r
+ }\r
+ /**\r
+ * add the properly initialised DbSourceProxy object 'proxy' to the list of sequence fetchers\r
+ * @param proxy\r
+ */\r
+ protected void addDbRefSourceImpl(DbSourceProxy proxy)\r
+ {\r
+ if (proxy != null)\r
+ {\r
+ if (FETCHABLEDBS == null)\r
+ {\r
+ FETCHABLEDBS = new Hashtable();\r
+ }\r
+ FETCHABLEDBS.put(proxy.getDbSource(), proxy);\r
+ }\r
}\r
\r
}
\ No newline at end of file