public class LifecycleFilter extends Object implements DronePointFilter<Object>
| Constructor and Description |
|---|
LifecycleFilter(DronePoint.Lifecycle lifecycle,
DronePoint.Lifecycle... additionalLifecycles)
Creates lifecycle filter which will match injection points with any of specified lifecycles.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(DroneContext context,
DronePoint<?> dronePoint)
Returns true if the injection point is accepted, false otherwise.
|
public LifecycleFilter(DronePoint.Lifecycle lifecycle, DronePoint.Lifecycle... additionalLifecycles) throws IllegalArgumentException
IllegalArgumentException - If any of the given lifecycles is null.public boolean accepts(DroneContext context, DronePoint<?> dronePoint)
DronePointFilteraccepts in interface DronePointFilter<Object>dronePoint - injection point of the drone.Copyright © 2016 JBoss by Red Hat. All rights reserved.