Hi,
I have to stop introducing myself with negative comments.
If people developing basex like the wildcards then that is a good enough reason to use them. My problem with wildcard imports is that I can't see what classes are imported by looking at the source code. I can use eclipse and find where things are. But, in that case, eclipse would by default be collapsing the imports making the source you see less cluttered than the imports with wildcards.
On the other hand, if wildcard imports are used because people are manually typing in the import statements and it is easier to type in wildcards, then such people who are not the author, or are the author a week into the future, would not be able to see what classes were imported because of the wildcards.
So, if it is based on the idea that everyone will use eclipse and it reduces clutter, it does the opposite for those people. If it is to make it easier for people not using eclipse, then people who work that way will have the problem of not seeing what classes are imported from looking at the source.
For the eclipse people, it's slightly less cluttered and slightly easier to not use wildcards. For the people not using eclipse, it shifts the burden from the person adding the import to everyone in the future.
Wow. Lot's of words.
About the examples, unless I missed it they all start with someone having manually done something like run a server. So, I was happy that the tests showed how to use a sandbox which was more like where I personally would like to start from, learning about basex.
Kendall
On 03/21/2013 01:28 PM, Dirk Kirsten wrote:
Hi,
There are lots of examples on this page in the wiki: http://docs.basex.org/wiki/Java_Examples. You might be especially interested in the local examples, if you do not wish to start a server. And yes, you can embed it completely.
What is the problem with wildcard imports? I didn't know this is an issue.
Cheers, Dirk
On Thu, Mar 21, 2013 at 7:09 PM, Kendall Shaw queshaw@sonic.net wrote:
On 03/21/2013 10:34 AM, Florent Georges wrote:
Hi, I was looking on http://docs.basex.org/ after documentation on
integrating BaseX within a Java application, but couldn't find any. Did I miss them?
In a few words, I have a Java webapp running in Tomcat, and I'd
like to use a BaseX database for the storage. Can I embed it completely? Do I have to start a server as a completely separate process?
Regards,
Hopefully someone has a better answer than this. I am looking at that right now, too. It looks to me like you can embed it using LocalSession. I am basing this on org.basex.test.server.**LocalSessionTest in the tests in basex directory on github.
There are other examples there of starting client and server.
I wish that the code did not use wildcard imports everywhere.
Kendall
______________________________**_________________ BaseX-Talk mailing list BaseX-Talk@mailman.uni-**konstanz.de BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.**de/mailman/listinfo/basex-talkhttps://mailman.uni-konstanz.de/mailman/listinfo/basex-talk