|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.w3c.tools.resources.DummyResourceReference
public class DummyResourceReference
This class implements the ResourceReference interface. For external use only. The ResourceStoreManager has its own Reference class.
| Field Summary | |
|---|---|
protected int |
lockCount
The lock count associated to the reference. |
| Constructor Summary | |
|---|---|
DummyResourceReference(Resource resource)
|
|
| Method Summary | |
|---|---|
void |
invalidate()
Set this reference as invalid. |
boolean |
isLocked()
Is that resource reference locked ? |
Resource |
lock()
Lock the refered resource in memory. |
int |
nbLock()
How many locks? |
void |
unlock()
Unlock that resource from memory. |
Resource |
unsafeLock()
Lock the refered resource in memory. |
void |
updateContext(ResourceContext ctxt)
update the cached context of that reference. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int lockCount
| Constructor Detail |
|---|
public DummyResourceReference(Resource resource)
resource - The resource to reference.| Method Detail |
|---|
public void updateContext(ResourceContext ctxt)
updateContext in interface ResourceReferencectxt - the new ResourceContext.
public Resource lock()
throws InvalidResourceException
lock in interface ResourceReferenceInvalidResourceException - is thrown if the resource is
invalid (has been deleted or everything else).
public Resource unsafeLock()
throws InvalidResourceException
unsafeLock in interface ResourceReferenceInvalidResourceException - is thrown if the resource is
invalid (has been deleted or everything else).public int nbLock()
nbLock in interface ResourceReferencepublic void unlock()
unlock in interface ResourceReferencepublic boolean isLocked()
isLocked in interface ResourceReferencepublic void invalidate()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||