public ProcessStoreImpl(EndpointReferenceContext eprContext,
DataSource ds,
ODEConfigurationProperties configurationProps) {
this.eprContext = eprContext;
if (ds != null) {
connectionFactory = new DbConfStoreConnectionFactory(ds, false,
configurationProps.getTxFactoryClass());
} else {
// If the datasource is not provided, then we create a HSQL-based in-memory
// database. Makes testing a bit simpler.
String guid = new GUID().toString();
DataSource hsqlds = createInternalDS(guid);
connectionFactory = new DbConfStoreConnectionFactory(hsqlds, true,
configurationProps.getTxFactoryClass());
inMemDs = hsqlds;
}
}