Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Having a regular tupelo context, you can create a context with time annotating capabilities by decorating a the regular context with a CompositeContext:

Code Block
Context context = ... //a regular tupelo context
DataSource dataSource =
   DataSourceFactory.getDataSource(DBType.MYSQL,"jdbc:mysql://host/db",
                                   "user","password");

Context timeAnnotatingContext = new CompositeContext(context,dataSource,DBType.MYSQL);