public class RequestGuardFactory extends Object
| Constructor and Description |
|---|
RequestGuardFactory() |
| Modifier and Type | Method and Description |
|---|---|
static <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.
|
public static <T> T guard(T target,
RequestType requestExpected,
boolean strict)
RequestGuardException is thrown.T - type of the given targettarget - object to be guardedrequestExpected - the request type being checked after each method invocationstrict - indicates that the expected request type can be interleaved by another typeCopyright © 2013 JBoss by Red Hat. All Rights Reserved.