User: patriot1burke
Date: 01/08/08 15:00:10
Modified: src/main/org/jboss/ejb BeanLock.java
Log:
refactored BeanLock interface
Revision Changes Path
1.9 +16 -24 jboss/src/main/org/jboss/ejb/BeanLock.java
Index: BeanLock.java
===================================================================
RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/ejb/BeanLock.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- BeanLock.java 2001/08/03 17:15:43 1.8
+++ BeanLock.java 2001/08/08 22:00:10 1.9
@@ -28,7 +28,7 @@
* @author <a href="[EMAIL PROTECTED]">Bill Burke</a>
* @author <a href="[EMAIL PROTECTED]">Marc Fleury</a>
*
- * @version $Revision: 1.8 $
+ * @version $Revision: 1.9 $
*
* <p><b>Revisions:</b><br>
* <p><b>2001/07/29: marcf</b>
@@ -45,44 +45,36 @@
public interface BeanLock
{
public Object getId();
- public void setId(Object id);
- public void setReentrant(boolean reentrant);
- public void setTimeout(int timeout);
+ public void setId(Object id);
+ public void setReentrant(boolean reentrant);
+ public void setTimeout(int timeout);
public void sync();
public void releaseSync();
- /*
- * schedule(MethodInvocation)
- *
- * implements the actual logic of the lock. In the case of an EJB lock must at
least implement
- * the serialization of calls
- */
- public boolean schedule(MethodInvocation mi)
+ /*
+ * schedule(MethodInvocation)
+ *
+ * implements the actual logic of the lock. In the case of an EJB lock must at
least implement
+ * the serialization of calls
+ */
+ public void schedule(MethodInvocation mi)
throws Exception;
/**
* setTransaction(Transaction tx)
*
* The setTransaction associates a transaction with the lock.
- */
+ */
public void setTransaction(Transaction tx);
public Transaction getTransaction();
-
- // Signifies to the lock of the transaction boundary (Tx demarcation seen)
- public void endTransaction(Transaction tx);
- //Signifies to the lock that the transaction will not Synchronize (Tx
demarcation not seen)
- public void wontSynchronize(Transaction tx);
+ // Signifies to the lock of the transaction boundary (Tx demarcation seen)
+ public void endTransaction(Transaction tx);
- /*encapsulates notify()*/
- public void notifyOne();
- /*encapsulates notifyAll()*/
- public void notifyEveryone();
+ //Signifies to the lock that the transaction will not Synchronize (Tx
demarcation not seen)
+ public void wontSynchronize(Transaction tx);
- public Object getLock();
-
-
public boolean isMethodLocked();
public int getNumMethodLocks();
public void addMethodLock();
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development