"alesj" wrote :
| What about extracting ExprEditor's api in some our interface
| and than having the only impl based on Javassist.
| (just thinking outloud)
|
| Or this doesn't make sense as you need too much Javassist specific
| things from this ExprEditor?
from what i can see this is very javassist specific and i cant see how it might fit in for
a different bytecode library (mostly thinking of cglib (not that i know that much cglib
:)).
another problem is that we cant make this as generic as we want since we're limited to
make the implementation we have work directly with javassist (since the user of the spi
will extend and create its own expreditor). our implementation must look something like:
public class BodyTranslatorImpl extends ExprEditor implements BodyTranslator { ... } where
BodyTranslator have the same methods as ExprEditor and BodyTranslatorImpl is just an empty
"delegator" that convert jboss-reflect object to javassist. not even sure this
might work, but thats the only solution i can see now that will solve the problem.
any better ideas that might solve it are highly appreciated.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4214835#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...