T
- external request context typepublic interface ExternalRequestScope<T> extends AutoCloseable
An implementation must be registered via META-INF/services mechanism. Only one implementation will be utilized during runtime. If more than one implementation is registered, no one will get used and an error message will be logged out.
Modifier and Type | Method and Description |
---|---|
void |
close()
Finish the actual request.
|
ExternalRequestContext<T> |
open(InjectionManager injectionManager)
Invoked when a new request gets started.
|
void |
resume(ExternalRequestContext<T> c,
InjectionManager injectionManager)
Resume request associated with provided context.
|
void |
suspend(ExternalRequestContext<T> c,
InjectionManager injectionManager)
Suspend request associated with provided context.
|
ExternalRequestContext<T> open(InjectionManager injectionManager)
injectionManager
- DI injection managervoid suspend(ExternalRequestContext<T> c, InjectionManager injectionManager)
c
- external request contextinjectionManager
- DI injection managervoid resume(ExternalRequestContext<T> c, InjectionManager injectionManager)
c
- external request contextinjectionManager
- DI injection managervoid close()
close
in interface AutoCloseable
Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.