Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor @ifExists and @Asynchronously as Notify annotation attribute…
…s on @observes Update tests in the EventTest class to the 20090519 spec (actually a bit beyond that) git-svn-id: http://anonsvn.jboss.org/repos/weld/ri/trunk@2861 1c488680-804c-0410-94cd-c6b725194a0e
- Loading branch information
1 parent
e73e2af
commit 74a0d26
Showing
7 changed files
with
47 additions
and
97 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package javax.event; | ||
|
||
/** | ||
* An enumeration that is used to declare the condition under which an | ||
* observer method should be called. The default behavior is to | ||
* create the bean and invoke the observer method synchronously. | ||
* | ||
* @author Gavin King | ||
* @author Dan Allen | ||
*/ | ||
public enum Notify { | ||
/** | ||
* Specifies that an observer method is only called if the current instance of | ||
* the bean declaring the observer method already exists. | ||
*/ | ||
IF_EXISTS, | ||
|
||
/** | ||
* Specifies that an observer method is called synchronously. | ||
*/ | ||
SYNCHRONOUSLY, | ||
|
||
/** | ||
* Specifies that an observer method receives the event notifications | ||
* asynchronously. | ||
*/ | ||
ASYNCHRONOUSLY | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters