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.
-
lockCount
- The lock count associated to the reference.
-
DummyResourceReference(Resource)
-
-
invalidate()
- Set this reference as invalid.
-
isLocked()
- Is that resource reference locked ?
-
lock()
- Lock the refered resource in memory.
-
nbLock()
- How many locks?
-
unlock()
- Unlock that resource from memory.
-
updateContext(ResourceContext)
- update the cached context of that reference.
lockCount
protected int lockCount
- The lock count associated to the reference.
DummyResourceReference
public DummyResourceReference(Resource resource)
- Parameters:
- resource - The resource to reference.
updateContext
public void updateContext(ResourceContext ctxt)
- update the cached context of that reference.
- Parameters:
- ctxt - the new ResourceContext.
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).
nbLock
public int nbLock()
- How many locks?
- Returns:
- an int.
unlock
public void unlock()
- Unlock that resource from memory.
isLocked
public boolean isLocked()
- Is that resource reference locked ?
invalidate
public void invalidate()
- Set this reference as invalid.
All Packages Class Hierarchy This Package Previous Next Index