ivaynberg / salve

Automatically exported from code.google.com/p/salve
0 stars 0 forks source link

Propagate additional @annotations next to @Transactional in lookup key #12

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I want to be able to use @Transactional with additional annotations like
for example @JmsManager to choose between different implementations of
salve.txn.TransactionManager.

Example:
-------

@Transactional
@JmsManager
public void doSomeJmsStuff()
{
  // ...
}

@Transactional
public void doDefaultDatabaseStuff()
{
  // ...
}

@Transactional
@FinancialDataSource
public void doDatabaseStuffInFinancialDatabaseDataSource()
{
  // ...
}

So based on the additional annotation salve will lookup different
implementations of TransactionManager. For this to work salve needs to
propagate the annotations next to @Transactional to the salve.depend.Key

Original issue reported on code.google.com by pete4...@gmail.com on 5 Jun 2009 at 4:56

GoogleCodeExporter commented 9 years ago

Original comment by igor.vay...@gmail.com on 7 Jun 2009 at 1:20

GoogleCodeExporter commented 9 years ago

Original comment by pete4...@gmail.com on 16 Jun 2009 at 4:21