Class RequestGuardFactory

java.lang.Object
org.jboss.arquillian.graphene.guard.RequestGuardFactory

public class RequestGuardFactory extends Object
Author:
Jan Papousek
  • Constructor Details

  • Method Details

    • guard

      public <T> T guard(T target, RequestType requestExpected, boolean strict)
      Returns the guarded object checking whether the request of the given type is done during each method invocation. If the request is not found, the RequestGuardException is thrown.
      Type Parameters:
      T - type of the given target
      Parameters:
      target - object to be guarded
      requestExpected - the request type being checked after each method invocation
      strict - indicates that the expected request type can be interleaved by another type
      Returns:
      the guarded object