public interface ResourceFactory
Modifier and Type | Method and Description |
---|---|
Object |
createResource(HttpRequest request,
HttpResponse response,
InjectorFactory factory)
Called per request to obtain a resource instance to invoke http request on.
|
Class<?> |
getScannableClass()
Class to scan for jax-rs annotations
|
void |
registered(InjectorFactory factory)
Callback after registration has been completed.
|
void |
requestFinished(HttpRequest request,
HttpResponse response,
Object resource)
Callback when request is finished.
|
void |
unregistered() |
Class<?> getScannableClass()
void registered(InjectorFactory factory)
factory
- allows singleton factories to pre-inject things like @Context references into the singleton instanceObject createResource(HttpRequest request, HttpResponse response, InjectorFactory factory)
request
- response
- factory
- void requestFinished(HttpRequest request, HttpResponse response, Object resource)
request
- response
- resource
- void unregistered()
Copyright © 2018 JBoss by Red Hat. All rights reserved.