org.jmage.resource
Interface ResourceManager

All Superinterfaces:
Configurable, RequestHandler
All Known Implementing Classes:
DefaultResourceManager

public interface ResourceManager
extends RequestHandler

ResourceManager


Method Summary
 java.lang.Object createFrom(ImageRequest request)
          Creates a resource object to use from a given ImageRequest.
 java.lang.Object createFrom(java.net.URI resourceURI)
          Creates a resource object to use from a given URI.
 
Methods inherited from interface org.jmage.RequestHandler
handle
 
Methods inherited from interface org.jmage.Configurable
configure
 

Method Detail

createFrom

java.lang.Object createFrom(ImageRequest request)
                            throws JmageException
Creates a resource object to use from a given ImageRequest. This will be in all cases an instance of PlanarImage, however Object is used as the return type for the cacheInterceptor to work.

Parameters:
request -
Returns:
the local resource object.
Throws:
ResourceException - if the resource could not be found, or not be handled by any of the configured ResourceFactory objects.
JmageException

createFrom

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

Parameters:
resourceURI -
Returns:
the local resource object.
Throws:
ResourceException - if the resource could not be found, or not be handled by any of the configured ResourceFactory objects.
JmageException


Copyright © 2004-2008 Sourceforge. All Rights Reserved.