|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sourceforge.jemm.lifecycle.ShadowUserObjectImpl
public class ShadowUserObjectImpl
An implementation of the ShadowObject interface that passes all method calls onto a set MethodListener.
Constructor Summary | |
---|---|
ShadowUserObjectImpl(JEMMObject object,
MethodListener l,
ID id,
int version)
|
|
ShadowUserObjectImpl(MethodListener l,
ID id,
int version)
|
Method Summary | |
---|---|
void |
beginLock()
Acquire the synchronisation lock the object is up to date with the current store version. |
void |
beginLock(java.lang.Object obj)
Acquire the synchronisation lock on the given object. |
void |
endLock()
Release the held read or write lock. |
void |
endLock(java.lang.Object obj)
Release the held read or write lock on the given object. |
void |
entityEntered(java.lang.String methodSignature)
Signifies the beginning of a method execution |
void |
entityExited(java.lang.String methodSignature)
Signifies the end of a method execution |
ShadowData |
getData()
Returns the ShadowData structure associated with this ShadowObject and the enhanced class which contains all the Object data. |
ID |
getID()
|
JEMMObject |
getUserObject()
Returns the JEMMObject user object that this ShadowObject related too. |
int |
getVersion()
|
void |
setUserObject(JEMMObject newObject)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ShadowUserObjectImpl(JEMMObject object, MethodListener l, ID id, int version)
public ShadowUserObjectImpl(MethodListener l, ID id, int version)
Method Detail |
---|
public void beginLock()
ShadowUserObject
beginLock
in interface ShadowUserObject
public void beginLock(java.lang.Object obj)
ShadowUserObject
beginLock
in interface ShadowUserObject
obj
- The target object to synchronise on.public void endLock()
ShadowUserObject
endLock
in interface ShadowUserObject
public void endLock(java.lang.Object obj)
ShadowUserObject
endLock
in interface ShadowUserObject
obj
- The target object to synchronise on.public void entityEntered(java.lang.String methodSignature)
ShadowUserObject
entityEntered
in interface ShadowUserObject
public void entityExited(java.lang.String methodSignature)
ShadowUserObject
entityExited
in interface ShadowUserObject
public JEMMObject getUserObject()
ShadowObject
getUserObject
in interface ShadowObject
public void setUserObject(JEMMObject newObject)
public ID getID()
getID
in interface ShadowObject
public int getVersion()
public ShadowData getData()
ShadowUserObject
getData
in interface ShadowUserObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |