[JBoss Microcontainer Development] - Re: ModifierInfo: enum or interface?
by flavia.rainone@jboss.com
"alesj" wrote : "flavia.rainone(a)jboss.com" wrote :
| | Before I try to fix it, I need to know if we are going to stick with ModifierInfo enum or with ModifierInfo interface.
| |
| If the fix for this is to revert it back to ModifierInfo as an interface,
| then that's exactly what I would do.
|
There are two possible fixes: reverting or updating dependencies such as the one in org.jboss.xb.builder.runtime.CollectionPropertyHandler.
On one hand, updating all dependencies at this point may be too much hassle. Plus, the fix I added to getNewModifier method can generate unnecessary overhead. This method is called everytime a new ClassInfo, MethodInfo, ConstructorInfo and FieldInfo is created, to fill in the modifier field.
On the other hand, the interface version has a drawback: it forces you to recalculate if it is static, for example, for as many times as method isStatic is called. But I don't know at what frequency the modifiers are checked, so I can't say how it compares to the overhead of getNewModifier method.
Given all that, I vote for reverting back to ModifierInfo interface.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4259599#4259599
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4259599
16 years, 6 months
[JBoss Transactions Development] - Re: Starting with JBoss Transactions
by adinn
anonymous wrote :
| What I have to do to start a empty project in Eclipse and uses XTS? Thanks again :)
|
If you have managed to build your XTS tree then you will find the deployable service archive jbossxts.sar in xts-install/sar. Install this in the server deploy directory for your app server and you can then also deploy either a client or server application which uses XTS to the same server deploy directory.
If you take a look inside the sar file (e.g. jar tvf jbossxts.sar) you will see that is built using a variety of jar and war files. The only one you need to develop an XTS application is the api jar which you will find in xts-install/lib/jbossxts-api.jar. This jar exposes all the publicly visible types your application (and eclipse) needs to know about (see the user guide for a full explanation of how to use the API types). Add this as an external API jar in your eclipse project so that eclipse can resolve references to the XTS API classes. Also ensure that it is in the classpath when you compile your application. That should be all you need.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4259567#4259567
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4259567
16 years, 6 months