Class RequestGuardFactory
java.lang.Object
org.jboss.arquillian.graphene.guard.RequestGuardFactory
- Author:
- Jan Papousek
-
Constructor Summary
ConstructorsConstructorDescriptionRequestGuardFactory(RequestGuard guard, Document document, GrapheneContext context) -
Method Summary
Modifier and TypeMethodDescription<T> Tguard(T target, RequestType requestExpected, boolean strict) Returns the guarded object checking whether the request of the given type is done during each method invocation.
-
Constructor Details
-
RequestGuardFactory
-
-
Method Details
-
guard
Returns the guarded object checking whether the request of the given type is done during each method invocation. If the request is not found, theRequestGuardExceptionis thrown.- Type Parameters:
T- type of the given target- Parameters:
target- object to be guardedrequestExpected- the request type being checked after each method invocationstrict- indicates that the expected request type can be interleaved by another type- Returns:
- the guarded object
-