com.cc.framework.resource
Class Resource

java.lang.Object
  extended bycom.cc.framework.resource.Resource
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
BinaryResource, ObjectResource

public abstract class Resource
extends java.lang.Object
implements java.io.Serializable

Base class for resources which can be managed by the ResourceManager.

Since:
1.0
Version:
$Revision: 1.14 $
Author:
Harald Schulz
See Also:
Serialized Form

Field Summary
private  java.lang.String cacheHint
          The CachHint can be used to get Resources out of the Cache instead of generating them with each request.
private  boolean cacheOnDisk
          The Flag is true if the Resource is stored in the file system
private static long serialVersionUID
          Serial Version UID
 
Constructor Summary
Resource(Cachable cacheInfo)
          Constructor for Resource
 
Method Summary
 boolean isCacheOnDisk()
           
 boolean isUpToDate(Cachable cacheInfo)
          Checks if the Resource is up to date or must be new created.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Serial Version UID

See Also:
Constant Field Values

cacheHint

private java.lang.String cacheHint
The CachHint can be used to get Resources out of the Cache instead of generating them with each request. The CachHint is not used if initialized with null.


cacheOnDisk

private boolean cacheOnDisk
The Flag is true if the Resource is stored in the file system

Constructor Detail

Resource

public Resource(Cachable cacheInfo)
Constructor for Resource

Parameters:
cacheInfo - Cachable
Method Detail

isUpToDate

public final boolean isUpToDate(Cachable cacheInfo)
Checks if the Resource is up to date or must be new created. The decision is been made by the ChachHint.

Parameters:
cacheInfo - Cachable
Returns:
boolean

isCacheOnDisk

public boolean isCacheOnDisk()
Returns:
Returns the cacheOnDisk.


Copyright © 2000-2005 SCC Informationssysteme GmbH. All Rights Reserved.