public interface ResourceFactory
Modifier and Type | Method and Description |
---|---|
Object |
createResource(HttpRequest request,
HttpResponse response,
ResteasyProviderFactory 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(ResteasyProviderFactory 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(ResteasyProviderFactory factory)
factory
- allows singleton factories to pre-inject things like @Context references into the singleton instanceObject createResource(HttpRequest request, HttpResponse response, ResteasyProviderFactory factory)
request
- response
- factory
- void requestFinished(HttpRequest request, HttpResponse response, Object resource)
request
- response
- resource
- void unregistered()
Copyright © 2017 JBoss by Red Hat. All rights reserved.