You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
paolociccarese edited this page Oct 31, 2014
·
1 revision
Until now I’ve implemented the Annotopia staff in DomeoClient as separate packages so that I could preserve the old code.
If you consider the connector to the BioPortal, in the BioPortalManager.java code we have a method selectConnector() that presented the following code.
public boolean selectConnector(IDomeo domeo) {
if(_connector!=null) return true;
_domeo = domeo;
if(domeo.isStandaloneMode()) {
_connector = new StandaloneBioPortalConnector();
} else {
if(domeo.isAnnotopiaEnabled()) {
_connector = new AnnotopiaBioPortalConnector(domeo, null);
} else if (domeo.isHostedMode()) {
_connector = new GwtBioPortalServiceConnector();
} else {
// Real service
_connector = new JsonBioPortalConnector(domeo);
}
}
domeo.getLogger().debug(this, "BioPortal Connector selected: " + _connector.getClass().getName());
return false;
}
Therefore if the domeo.isAnnotopiaEnabled() is true the AnnotopiaBioPortalConnector gets injected. The AnnotopiaBioPortalConnector contains all the implementations for terms search and text mining.