org.jmage.resource
Interface ResourceFactory

All Superinterfaces:
Configurable
All Known Implementing Classes:
DefaultImageFactory, FontFactory

public interface ResourceFactory
extends Configurable

Interface for resource factories


Method Summary
 boolean canHandle(java.net.URI resourceURI)
          Determines whether a ResourceFactory can handle a resource for a given URI.
 void configureRequestProperties(java.util.Properties properties)
          Initialize the ResourceFactory with extra Properties needed
 java.lang.Object createFrom(java.net.URI resource)
          Creates a resource object to use from a given URI.
 void removeRequestProperties(java.util.Properties properties)
          Lifecycle method for removing per request properties
 
Methods inherited from interface org.jmage.Configurable
configure
 

Method Detail

configureRequestProperties

void configureRequestProperties(java.util.Properties properties)
Initialize the ResourceFactory with extra Properties needed

Parameters:
properties -

canHandle

boolean canHandle(java.net.URI resourceURI)
Determines whether a ResourceFactory can handle a resource for a given URI.

Parameters:
resourceURI - the URI of the resource.
Returns:
true | false

createFrom

java.lang.Object createFrom(java.net.URI resource)
                            throws JmageException
Creates a resource object to use from a given URI.

Parameters:
resource -
Returns:
the resource object.
Throws:
ResourceException - if the object cannot be found or an error occurs during creation.
JmageException

removeRequestProperties

void removeRequestProperties(java.util.Properties properties)
Lifecycle method for removing per request properties

Parameters:
properties -


Copyright © 2004-2008 Sourceforge. All Rights Reserved.