|
Arquillian Drone Extension Implementation 1.0.0.CR4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.arquillian.drone.impl.DroneContext
public class DroneContext
Holder of Drone context. It is able to store different instances of drone instances as well as their configurations and to retrieve them during testing.
| Constructor Summary | |
|---|---|
DroneContext()
|
|
| Method Summary | ||
|---|---|---|
|
add(Class<?> key,
Class<? extends Annotation> qualifier,
T instance)
Adds object under given key and given qualifier |
|
|
add(Class<T> key,
T instance)
Adds object under given key and Default qualifier |
|
|
get(Class<T> key)
Gets object stored under Default qualifier and given key |
|
|
get(Class<T> key,
Class<? extends Annotation> qualifier)
Gets object stored under given qualifier and given key |
|
DroneContext |
remove(Class<?> key)
Removes object under given key and Default qualifier |
|
DroneContext |
remove(Class<?> key,
Class<? extends Annotation> qualifier)
Removes object under given key and given qualifier |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DroneContext()
| Method Detail |
|---|
public <T> T get(Class<T> key)
Default qualifier and given key
T - Type of the objectkey - Key used to find the object
public <T> T get(Class<T> key,
Class<? extends Annotation> qualifier)
T - Type of the objectkey - Key used to find the objectqualifier - Qualifier used to find the object
public <T> DroneContext add(Class<T> key,
T instance)
Default qualifier
T - Type of the objectkey - Key used to store the objectinstance - Object to be stored
public <T> DroneContext add(Class<?> key,
Class<? extends Annotation> qualifier,
T instance)
T - Type of the objectkey - Key used to store the objectqualifier - Qualifier used to store the objectinstance - Object to be stored
public DroneContext remove(Class<?> key)
Default qualifier
key - Key used to find the object
public DroneContext remove(Class<?> key,
Class<? extends Annotation> qualifier)
key - Key used to find the objectqualifier - Qualifier used to find the object
|
Arquillian Drone Extension Implementation 1.0.0.CR4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||