I'm still not understanding.

Let me rephrase what you are doing:

You have a factory: TransactionLocalFactory that needs a dependency on the
transaction manager.


  | public class TransactionLocalFactory
  | {
  |    @Inject 
  |    public void setTransactionManager(TransactionManager tm) {};
  | }
  | 

You have an aspect that depends on the TransactionLocalFactory.


  | public class TransactionLocalInterceptor/Aspect
  | {
  |    private TransactionLocal tl;
  |    public TransactionLocalInterceptor(TransactionLocalFactory tlf)
  |    {
  |       tl = tlf.create();
  |    }
  | }
  | 

Where does the dynamic nature come in?

In fact, in this case the tlf could be transaction manager itself for the JBoss
transaction manager.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3861444#3861444

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3861444


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
JBoss-Development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to