[jboss-user] [JBoss Seam] - Re: Integrate user defined Resources (suggestions needed)
petemuir
do-not-reply at jboss.com
Thu Mar 22 05:19:45 EDT 2007
@Name("report")
| public class Report {
|
| private String fileName;
| // getter and setter
|
| @Unwrap
| public InputStream unwrap {
| return Resources.getResourceAsStream(fileName);
| }
| }
Configure through components.xml/component.properties
You could easily extend for a list of files.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030506#4030506
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030506
More information about the jboss-user
mailing list