Skip to content

Instantly share code, notes, and snippets.

@steinarb
Created October 21, 2019 19:34
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/57a3a28051ed087640c0dc10a707aee9 to your computer and use it in GitHub Desktop.
Save steinarb/57a3a28051ed087640c0dc10a707aee9 to your computer and use it in GitHub Desktop.
@Component(service=UkelonnDatabase.class, immediate=true)
public class UkelonnDatabaseProvider implements UkelonnDatabase {
private DataSourceFactory dataSourceFactory;
@Reference(target="(osgi.jdbc.driver.name=derby)")
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