|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jmage.resource.DefaultResourceManager
public class DefaultResourceManager
ResourceManager is a facade for all ResourceFactories.
| Field Summary | |
|---|---|
protected java.util.List |
resourceFactories
|
| Constructor Summary | |
|---|---|
protected |
DefaultResourceManager()
|
|
DefaultResourceManager(java.util.List resourceFactories)
Creates a ResourceManager for an array of given ResourceFactories |
| Method Summary | |
|---|---|
void |
configure(ApplicationContext context)
|
java.lang.Object |
createFrom(ImageRequest request)
Creates a resource object to use from a given URI. |
java.lang.Object |
createFrom(java.net.URI resourceURI)
Creates a resource object to use from a given URI. |
void |
handle(ImageRequest request)
Creates the PlanarImage from a URI resource and sets it on the ImageRequest |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.util.List resourceFactories
| Constructor Detail |
|---|
protected DefaultResourceManager()
public DefaultResourceManager(java.util.List resourceFactories)
resourceFactories - | Method Detail |
|---|
public void configure(ApplicationContext context)
configure in interface Configurable
public void handle(ImageRequest request)
throws JmageException
handle in interface RequestHandlerrequest - the image request
ResourceException
JmageException
public java.lang.Object createFrom(ImageRequest request)
throws JmageException
createFrom in interface ResourceManagerrequest -
ResourceException - if the resource could not be found, or not be handled by any of
the configured ResourceFactory objects.
JmageException
public java.lang.Object createFrom(java.net.URI resourceURI)
throws JmageException
createFrom in interface ResourceManagerresourceURI -
ResourceException - if the resource could not be found, or not be handled by any of
the configured ResourceFactory objects.
JmageExceptionpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||