All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class org.webmacro.broker.ResourceManager

java.lang.Object
   |
   +----org.webmacro.broker.ResourceManager

public final class ResourceManager
extends Object
implements ResourceMap

Method Index

 o get(String)
Get the resource matching te supplied name
 o getExpireTime()
What expire time are we currently using?
 o put(String, Object)
Add the resource matching the supplied name
 o remove(String)
Remove the resource matching the supplied name
 o setExpireTime(int)
Set the expire time for the cache.
 o toString()
Get a string representing this ResourceManager, suitable for debugging purposes.

Methods

 o toString
 public final String toString()
Get a string representing this ResourceManager, suitable for debugging purposes.

Overrides:
toString in class Object
 o getExpireTime
 public long getExpireTime()
What expire time are we currently using?

 o setExpireTime
 public void setExpireTime(int expireTime)
Set the expire time for the cache. Valid values include any positive integer (number of milliseconds), or the cache control constants defined in ResourceProvider: ResourceProvider.NEVER_CACHE (never cache a resource) or ResourceProvider.INFINITE_CACHE (cache resources forever).

 o get
 public final ResourceEvent get(String name) throws InvalidArgumentException, ResourceUnavailableException
Get the resource matching te supplied name

 o remove
 public final void remove(String name) throws InvalidArgumentException, ResourceUnavailableException
Remove the resource matching the supplied name

 o put
 public final ResourceEvent put(String name,
                                Object argument) throws InvalidArgumentException, ResourceUnavailableException
Add the resource matching the supplied name


All Packages  Class Hierarchy  This Package  Previous  Next  Index