[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: jboss-scanning.xml

adrian@jboss.org do-not-reply at jboss.com
Tue Nov 11 09:46:07 EST 2008


"alesj" wrote : Moving this 
  |  - http://lists.jboss.org/pipermail/jboss-development/2008-November/012965.html
  | discussion here.
  | 
  | How would this file look like?
  | e.g.
  | 
  |   | <scanning>
  |   |    <include path="org/jboss/acme/ejbs" filter="ant:*.*Bean"/>
  |   |    <include path="org/jboss/domain/hibernate" filter="regexp:<some-reg-exp>"/>
  |   |    <exclude path="org/jboss/logic"/>
  |   |    <exclude module="rules-impl.jar" />
  |   | </scanning>
  |   | 
  | 

That's a horrible syntax. If you really need to go beyond file/ant globbing
for a file filter couldn't you have a seperate attribute to specify a different
fitlerType="regexp"?

anonymous wrote : 
  | Or what info should we expect from ScanningMetaData?
  | 

Classes - with a short syntax for ease of use in some cases,
e.g. including specific paths

  | <scanning xmlns="urn:jboss:scanning:1.0">
  |    <path name="myejbs.jar">
  | <!-- long form -->
  |        <classes>
  |            <include name="com.acme.foo.**"/>
  |            <exclude name="com.acme.foo.bar.*"/>
  |        </classes>
  |    </path>
  | <!-- short form -->
  |    <path name="my.war/WEB-INF/classes" include="com.acme.foo.**"/>
  | </scanning>
  | 

How much of this you actually implement in the first version is upto you.
The minimum would be a list of explicit paths to include (exclusion being the default).

Also, the paths need to be able to handle "external jars",
e.g. those referenced from the manifest

anonymous wrote : 
  | ejb-jar.xml and web.xml are mentioned in ml discussion.
  | How would we transform them into ScanningMetaData?
  | 

metadata-complete (or pre javaee5 dds) means nothing is scanned

  | <scanning xmlns="urn:jboss:scanning:1.0"/> <!-- nothing -->
  | 

otherwise all the jars and all the classes are scanned

  | <scanning xmlns="urn:jboss:scanning:1.0">
  |     <include name="**"/>
  | </scanning>
  | 


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

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



More information about the jboss-dev-forums mailing list