[jboss-user] [Microcontainer] - Re: Retrieve all metadata from a deployment unit.

alesj do-not-reply at jboss.com
Fri Apr 24 03:05:50 EDT 2009


I'll add this to VFSDeploymentUnit:

  |    /**
  |     * Gets the metadata files for this deployment unit
  |     * 
  |     * @param filter the file filter
  |     * @return the virtual files that match
  |     * @throws IllegalArgumentException if both the name and suffix are null
  |     */
  |    List<VirtualFile> getMetaDataFiles(VirtualFileFilter filter);
  | 

This will enable you to easily get what you're looking for.
e.g. if filter is instance of VirtualFileFilterWithAttributes it will also recurse into metadata locations

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

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



More information about the jboss-user mailing list