Class LifecycleFilter
- java.lang.Object
-
- org.jboss.arquillian.drone.spi.filter.LifecycleFilter
-
- All Implemented Interfaces:
DronePointFilter<Object>
public class LifecycleFilter extends Object implements DronePointFilter<Object>
Filter for finding injection points by the lifecycle.
-
-
Constructor Summary
Constructors Constructor Description LifecycleFilter(DronePoint.Lifecycle lifecycle, DronePoint.Lifecycle... additionalLifecycles)Creates lifecycle filter which will match injection points with any of specified lifecycles.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccepts(DroneContext context, DronePoint<?> dronePoint)Returns true if the injection point is accepted, false otherwise.
-
-
-
Constructor Detail
-
LifecycleFilter
public LifecycleFilter(DronePoint.Lifecycle lifecycle, DronePoint.Lifecycle... additionalLifecycles) throws IllegalArgumentException
Creates lifecycle filter which will match injection points with any of specified lifecycles. Usage of multiple lifecycles behaves like disjunction.- Throws:
IllegalArgumentException- If any of the given lifecycles is null.
-
-
Method Detail
-
accepts
public boolean accepts(DroneContext context, DronePoint<?> dronePoint)
Description copied from interface:DronePointFilterReturns true if the injection point is accepted, false otherwise.- Specified by:
acceptsin interfaceDronePointFilter<Object>dronePoint- injection point of the drone.
-
-