vishnu.sharing
Class ShareGate

java.lang.Object
  extended by vishnu.sharing.ShareGate

public class ShareGate
extends java.lang.Object

Author:
cesare
 

Nested Class Summary
static class ShareGate.Action
           
static class ShareGate.ActionNotification
           
 
Constructor Summary
ShareGate(java.lang.Object resource)
           
 
Method Summary
 void accessForRead()
           
 void accessForWrite()
           
protected  void notifyAccess(ShareGate.Action a)
           
static java.util.Observable observable()
           
 void releaseAccessForRead()
           
 void releaseAccessForWrite()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShareGate

public ShareGate(java.lang.Object resource)
Method Detail

observable

public static java.util.Observable observable()

notifyAccess

protected void notifyAccess(ShareGate.Action a)

accessForRead

public void accessForRead()

accessForWrite

public void accessForWrite()

releaseAccessForRead

public void releaseAccessForRead()

releaseAccessForWrite

public void releaseAccessForWrite()