org.jboss.cdi.tck.tests.context.request.event.remote
Class FooBean

java.lang.Object
  extended by org.jboss.cdi.tck.tests.context.request.event.remote.FooBean
All Implemented Interfaces:
FooRemote

public class FooBean
extends Object
implements FooRemote


Constructor Summary
FooBean()
           
 
Method Summary
 boolean first()
          Verifies that the request context is active during remote method invocation and that @Initialized(RequestScoped.class) was fired when this context was initialized.
 boolean second()
          Verifies that the request context is active during remote method invocation and that @Initialized(RequestScoped.class) was fired when this context was initialized.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FooBean

public FooBean()
Method Detail

first

public boolean first()
Verifies that the request context is active during remote method invocation and that @Initialized(RequestScoped.class) was fired when this context was initialized. Also resets ApplicationScopedObserver which detects @Destroyed events.

Specified by:
first in interface FooRemote

second

public boolean second()
Verifies that the request context is active during remote method invocation and that @Initialized(RequestScoped.class) was fired when this context was initialized. Furthermore, this method verifies that the @Destroyed event observer that was reset in the first() invocation received @Destroyed event in the meantime (this event was fired once the request context of the first() invocation was destroyed).

Specified by:
second in interface FooRemote


Copyright © 2008-2013 Seam Framework. All Rights Reserved.