net.sf.jasperreports.jsf.resource.providers
Class URLResourceFactory

java.lang.Object
  extended by net.sf.jasperreports.jsf.resource.providers.URLResourceFactory
All Implemented Interfaces:
ResourceFactory

public class URLResourceFactory
extends Object
implements ResourceFactory


Constructor Summary
URLResourceFactory()
           
 
Method Summary
 boolean acceptsResource(String name)
           
 Resource createResource(FacesContext context, String name)
          Creates a new Resource instance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URLResourceFactory

public URLResourceFactory()
Method Detail

acceptsResource

public boolean acceptsResource(String name)
Specified by:
acceptsResource in interface ResourceFactory

createResource

public Resource createResource(FacesContext context,
                               String name)
                        throws IOException
Description copied from interface: ResourceFactory
Creates a new Resource instance

Specified by:
createResource in interface ResourceFactory
Parameters:
context - the current FacesContext
name - the resource name
Returns:
a new Resource instance
Throws:
IOException - if the resource can't be loaded.


Copyright © 2009 SourceForge.net. All Rights Reserved.