org.jboss.arquillian.test.spi.event.suite
Class ClassLifecycleEvent

java.lang.Object
  extended by org.jboss.arquillian.test.spi.event.suite.SuiteEvent
      extended by org.jboss.arquillian.test.spi.event.suite.ClassEvent
          extended by org.jboss.arquillian.test.spi.event.suite.ClassLifecycleEvent
All Implemented Interfaces:
Event, LifecycleEvent
Direct Known Subclasses:
AfterClass, BeforeClass

public class ClassLifecycleEvent
extends ClassEvent
implements LifecycleEvent

A ClassLifeCycleEvent is a type of ClassEvent used for e.g. @BeforeClass/@AfterClass operations on the TestClass.

Version:
$Revision: $
Author:
Aslak Knutsen

Constructor Summary
ClassLifecycleEvent(Class<?> testClass)
          Create a new ClassLifecycleEvent for a specific Class.
ClassLifecycleEvent(Class<?> testClass, LifecycleMethodExecutor executor)
          Create a new ClassLifecycleEvent for a specific Class.
ClassLifecycleEvent(TestClass testClass)
          Create a new ClassLifecycleEvent for a specific Class.
ClassLifecycleEvent(TestClass testClass, LifecycleMethodExecutor executor)
          Create a new ClassLifecycleEvent for a specific Class.
 
Method Summary
 LifecycleMethodExecutor getExecutor()
          Get the call back handler for this lifecycle method.
 
Methods inherited from class org.jboss.arquillian.test.spi.event.suite.ClassEvent
getTestClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassLifecycleEvent

public ClassLifecycleEvent(Class<?> testClass)
Create a new ClassLifecycleEvent for a specific Class.

This will use a NO_OP LifecycleMethodExecutor.

Parameters:
testClass - The source for this ClassEvent

ClassLifecycleEvent

public ClassLifecycleEvent(TestClass testClass)
Create a new ClassLifecycleEvent for a specific Class.

This will use a NO_OP LifecycleMethodExecutor.

Parameters:
testClass - The source for this ClassEvent

ClassLifecycleEvent

public ClassLifecycleEvent(Class<?> testClass,
                           LifecycleMethodExecutor executor)
Create a new ClassLifecycleEvent for a specific Class.

Parameters:
testClass - The source for this ClassEvent
executor - A call back when the LifecycleMethod represented by this event should be invoked

ClassLifecycleEvent

public ClassLifecycleEvent(TestClass testClass,
                           LifecycleMethodExecutor executor)
Create a new ClassLifecycleEvent for a specific Class.

Parameters:
testClass - The source for this ClassEvent
executor - A call back when the LifecycleMethod represented by this event should be invoked
Method Detail

getExecutor

public LifecycleMethodExecutor getExecutor()
Description copied from interface: LifecycleEvent
Get the call back handler for this lifecycle method.

Specified by:
getExecutor in interface LifecycleEvent
Returns:
the executor


Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.