[jboss-user] [Microcontainer] - Web Bean Discovery

pete.muir@jboss.org do-not-reply at jboss.com
Fri Nov 14 08:32:01 EST 2008


In building the Web Beans RI we have decided from the outset to not provide any built in discovery of classes and xml files to deploy, but instead delegate to the container via an SPI. We need initially to build one that is suitable for JBoss 5.

I have decided that the simplest approach is for the integration layer to implement the discovery rules, thus the SPI is very simple:

public interface WebBeanDiscovery {
  |    
  |    public Set<Class<?>> discoverWebBeanClasses();
  |    
  | }

The returned Set<Class<?>> should comprise all classes which present in this archive (and any sub-deployments it has e.g. in the war for an ear):

* any web-beans.xml file in any root directory of the application classpath, 
* any ejb-jar.xml file in any root directory of the application classpath that also has a web-beans.xml file, and 
* any Java class in any archive or directory in the classpath that has a web-beans.xml file in the root directory. 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4189390#4189390

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4189390



More information about the jboss-user mailing list