|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.w3c.tools.resources.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. |
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)
ctxt
- the new ResourceContext.public Resource lock() throws InvalidResourceException
public int nbLock()
public void unlock()
public boolean isLocked()
public void invalidate()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |