Classpath scanner code

View: New views
2 Messages — Rating Filter:   Alert me  

Classpath scanner code

by XMaNIaC :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I'm attaching a preliminary version of the code to scan the classpath. Beware that this version is intentionally simple and can only match classes given a package name (like mypkg.dto.*). No annotation checking or those fancy things Spring can do.

In addition to the unit test I've tried it in Tomcat 6 (WAR), Glassfish v2 (EE5 EAR) & Websphere 6.1 (J2EE EAR) and everything worked. All the tests where executed on a Windows laptop though. I don't have easy access to Linux or Weblogic here so if anyone can help and test it in other platforms it would be appreciated.

Regards,





---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...

ClasspathScannerTest.java (1K) Download Attachment
ClasspathScanner.java (4K) Download Attachment
ScannerListener.java (1K) Download Attachment
hibernate-commons-annotations.jar (88K) Download Attachment

Re: Classpath scanner code

by Joe Walker-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Thanks. For now, I've put the source into etc/future/scanner.
Joe.

On Sat, Jul 12, 2008 at 10:42 AM, Jose Noheda <jose.noheda@...> wrote:
Hi,

I'm attaching a preliminary version of the code to scan the classpath. Beware that this version is intentionally simple and can only match classes given a package name (like mypkg.dto.*). No annotation checking or those fancy things Spring can do.

In addition to the unit test I've tried it in Tomcat 6 (WAR), Glassfish v2 (EE5 EAR) & Websphere 6.1 (J2EE EAR) and everything worked. All the tests where executed on a Windows laptop though. I don't have easy access to Linux or Weblogic here so if anyone can help and test it in other platforms it would be appreciated.

Regards,

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...

LightInTheBox - Buy quality products at wholesale price!