@DeclareRoles(value={"student","printer"}) public class FooObserver extends Object
| Constructor and Description |
|---|
FooObserver() |
| Modifier and Type | Method and Description |
|---|---|
static void |
observeAfterCompletion(Foo foo) |
static void |
observeAfterFailure(Foo foo) |
static void |
observeAfterSuccess(Foo foo) |
static void |
observeBeforeCompletion(Foo foo) |
static void |
observeInProgress(Foo foo) |
public static void observeInProgress(@Observes(during=IN_PROGRESS)
Foo foo)
throws Exception
Exceptionpublic static void observeBeforeCompletion(@Observes(during=BEFORE_COMPLETION)
Foo foo)
throws Exception
Exceptionpublic static void observeAfterCompletion(@Observes(during=AFTER_COMPLETION)
Foo foo)
throws Exception
Exceptionpublic static void observeAfterFailure(@Observes(during=AFTER_FAILURE)
Foo foo)
throws Exception
ExceptionCopyright © 2008–2016 CDI TCK. All rights reserved.