All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class org.w3c.tools.resources.DummyResourceReference

java.lang.Object
   |
   +----org.w3c.tools.resources.DummyResourceReference

public class DummyResourceReference
extends Object
implements ResourceReference
This class implements the ResourceReference interface. For external use only. The ResourceStoreManager has its own Reference class.


Variable Index

 o lockCount
The lock count associated to the reference.

Constructor Index

 o DummyResourceReference(Resource)

Method Index

 o invalidate()
Set this reference as invalid.
 o isLocked()
Is that resource reference locked ?
 o lock()
Lock the refered resource in memory.
 o nbLock()
How many locks?
 o unlock()
Unlock that resource from memory.
 o updateContext(ResourceContext)
update the cached context of that reference.

Variables

 o lockCount
 protected int lockCount
The lock count associated to the reference.

Constructors

 o DummyResourceReference
 public DummyResourceReference(Resource resource)
Parameters:
resource - The resource to reference.

Methods

 o updateContext
 public void updateContext(ResourceContext ctxt)
update the cached context of that reference.

Parameters:
ctxt - the new ResourceContext.
 o lock
 public Resource lock() throws InvalidResourceException
Lock the refered resource in memory.

Returns:
A real pointer to the resource.
Throws: InvalidResourceException
is thrown if the resource is invalid (has been deleted or everything else).
 o nbLock
 public int nbLock()
How many locks?

Returns:
an int.
 o unlock
 public void unlock()
Unlock that resource from memory.

 o isLocked
 public boolean isLocked()
Is that resource reference locked ?

 o invalidate
 public void invalidate()
Set this reference as invalid.


All Packages  Class Hierarchy  This Package  Previous  Next  Index