public class RequestGuardFactory extends Object
Constructor and Description |
---|
RequestGuardFactory(RequestGuard guard,
Document document,
GrapheneContext context) |
Modifier and Type | Method and Description |
---|---|
<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 RequestGuardFactory(RequestGuard guard, Document document, GrapheneContext context)
public <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.