<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
On 7/16/09 6:15 PM, Galder Zamarreno wrote:
<blockquote cite="mid:4A5F523D.8030504@redhat.com" type="cite">
<pre wrap="">
</pre>
<pre wrap=""><!---->
Although brutal, this might the way forward. I mean, even if it's a
lengthy process, the first time you do it, for every class with
@Marshallable annotation that you find, you could add it to the map,
regardless of whether it matches the one you're after. So, next time
around, you'd have already done the hard work and would only do scanning
if the mapping was not there.
Vladimir, can you help with something like this?
</pre>
</blockquote>
It is brutal. If you end up searching entire classpath it can take
forever. If you can restrict search only certain jars and file paths -
maybe not. Look at ClassFinder in util package and see if it suits you
or how you can modify it.<br>
<br>
I guess you could also require certain flag in manifest file of jar so
you don't even scan jar if the flag is not there and so on... <br>
<br>
Cheers,<br>
Vladimir<br>
</body>
</html>