bloritsch 01/12/19 09:46:51
Modified: src/scratchpad/org/apache/avalon/excalibur/event
QueueElement.java
Log:
Added some clarification to the javadocs
Revision Changes Path
1.4 +9 -9
jakarta-avalon-excalibur/src/scratchpad/org/apache/avalon/excalibur/event/QueueElement.java
Index: QueueElement.java
===================================================================
RCS file:
/home/cvs/jakarta-avalon-excalibur/src/scratchpad/org/apache/avalon/excalibur/event/QueueElement.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- QueueElement.java 2001/12/17 18:50:13 1.3
+++ QueueElement.java 2001/12/19 17:46:51 1.4
@@ -26,17 +26,17 @@
* <pre>
* public interface AsyncFileTypes
* {
- * long ADDRESS = $af100000;
- * long FILE_OPEN = ADDRESS + 1;
- * long FILE_CLOSE = FILE_OPEN + 1;
+ * long FILE_OPEN =
TypeUtil.makeId(AsyncFileOpen.getClass().getName());
+ * long FILE_CLOSE =
TypeUtil.makeId(AsyncFileClose.getClass().getName());
* }
* </pre>
+ *
+ * <p>
+ * <strong>Important:</strong> The ID has to be unique for each class.
+ * That means that if the fully qualified class name is different, then
+ * the id's need to be different. It also means that you must not use
+ * multiple id's for the same class.
+ * </p>
*/
long getType();
-
- /**
- * Get a handle to an attached object. The attachment is added via the
- * constructor, to enforce a read-only contract.
- */
- Object getAttachment();
}
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>