As Aslak describes.
With the remaining question mark of:
public JavaArchive add(Asset... assets)
...pursuant to our Asset.getPath discussion. But definitely:
public JavaArchive addClasses(Class<?>... classes)
| {
| for(Class<?> clazz : classes)
| {
| ClassAsset asset = new ClassAsset(clazz);
| Path path = new BasicPath(ClassAssetUtil.convertClassNameToResourceName(clazz));
| storageDelegate.add(path,asset);
| }
| }
S,
ALR
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4250799#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...