Skip to content

Instantly share code, notes, and snippets.

@steinarb
Created October 21, 2019 19:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save steinarb/9f0387f11d5274aa12e88996cb621ecc to your computer and use it in GitHub Desktop.
Save steinarb/9f0387f11d5274aa12e88996cb621ecc to your computer and use it in GitHub Desktop.
@Component(service=UkelonnDatabase.class, immediate=true)
public class PGUkelonnDatabaseProvider implements UkelonnDatabase {
private DataSourceFactory dataSourceFactory;
@Reference(target="(osgi.jdbc.driver.name=PostgreSQL JDBC Driver)")
public void setDataSourceFactory(DataSourceFactory dataSourceFactory) {
this.dataSourceFactory = dataSourceFactory;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment