There's been sporadic talk on this newsgroup since September 2010 about 
providing a commons component which can scan a classpath and provide metadata 
about the classes.   I have a clean (license-wsie) concrete interface and 
implementation to share.  This code will support the following use cases:

1. An ioc container used during unit testing that replaces the full-blown EJB 
container.  The ioc container will auto-stitch the @Stateless unit under test 
with default @EJB implementations available from the classpath.  The container 
allows replacement of default implementations with specific mocks.  Framework 
needs to find @EJB interfaces and implementations available from jars in 
classpath.

2. Augment a code container to implement a domain event pub/sub framework.  
Auto-stitch the subscribers that want specific events to the publication of 
events.  Framework needs to find implementations available to ear.

3. A JPA implementation must find all classes marked with @Entity within the 
same jar that contains a META-INF/persistence.xml file.

Anyone still interested in  supporting classpath / introspection features?

Implementation available for download from 
<https://github.com/chonton/meiyo-sandbox> 
http://github.com/chonton/meiyo-sandbox

Reports viewable at http://chonton.github.com/meiyo-sandbox/

Regards,
chas

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org

Reply via email to