Package org.jboss.arquillian.drone.spi
Interface DroneContext
-
public interface DroneContextContext that stores global configuration andDronePointContextfor drone points. It also allows to find drone points based on given filters.- Author:
- Karel Piwko
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description <DRONE> booleancontains(DronePoint<DRONE> dronePoint)Returns true ifDronePointContextis already created for specified drone point.<DRONE> FilterableResult<DRONE>find(Class<DRONE> droneClass)Returns aFilterableResultof injection points with drone type that can be cast to the given type.<DRONE> DronePointContext<DRONE>get(DronePoint<DRONE> dronePoint)Returns an instance ofDronePointContextfor specified drone point, creating it if it does not exist.<C extends DroneConfiguration<C>>
CgetGlobalDroneConfiguration(Class<C> configurationClass)Deprecated.<DRONE> voidremove(DronePoint<DRONE> dronePoint)Removes current instance ofDronePointContextfor specified drone point.voidsetGlobalDroneConfiguration(DroneConfiguration<?> configuration)Deprecated.
-
-
-
Method Detail
-
getGlobalDroneConfiguration
@Deprecated <C extends DroneConfiguration<C>> C getGlobalDroneConfiguration(Class<C> configurationClass)
Deprecated.Returns drone extension configuration. This method is deprecated and will soon be replaced.
-
setGlobalDroneConfiguration
@Deprecated void setGlobalDroneConfiguration(DroneConfiguration<?> configuration)
Deprecated.Sets drone extension configuration. This method is deprecated and will soon be replaced.
-
get
<DRONE> DronePointContext<DRONE> get(DronePoint<DRONE> dronePoint)
Returns an instance ofDronePointContextfor specified drone point, creating it if it does not exist.
-
contains
<DRONE> boolean contains(DronePoint<DRONE> dronePoint)
Returns true ifDronePointContextis already created for specified drone point.
-
remove
<DRONE> void remove(DronePoint<DRONE> dronePoint)
Removes current instance ofDronePointContextfor specified drone point. If it was not created, does nothing.
-
find
<DRONE> FilterableResult<DRONE> find(Class<DRONE> droneClass)
Returns aFilterableResultof injection points with drone type that can be cast to the given type. Using the Object.class as the type, it returns all injection points stored.
-
-