|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 ResourceReference
ctxt
- the new ResourceContext.public Resource lock() throws InvalidResourceException
lock
in interface ResourceReference
InvalidResourceException
- is thrown if the resource is
invalid (has been deleted or everything else).public Resource unsafeLock() throws InvalidResourceException
unsafeLock
in interface ResourceReference
InvalidResourceException
- is thrown if the resource is
invalid (has been deleted or everything else).public int nbLock()
nbLock
in interface ResourceReference
public void unlock()
unlock
in interface ResourceReference
public boolean isLocked()
isLocked
in interface ResourceReference
public void invalidate()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |