mfornos/orientdb — Issue #3: Problem injecting OGraphDB
Author: mfornos
Created: 2011-12-30 16:24:06+00:00
State: open

There's a bug in the order of injection evaluation. OGraphDb must be evaluated before DocumentTx in DatabaseSource:

public T getBeanOfType(Class clazz) {
if (ODatabaseObjectTx.class.isAssignableFrom(clazz)) {
return (T) objectDB;
} else if (OGraphDatabase.class.isAssignableFrom(clazz)) {
return (T) documentDB;
} else if (ODatabaseDocumentTx.class.isAssignableFrom(clazz)) {
return (T) graphDB;
} else {
return null;
}
}