org.apache.cxf.jaxrs.provider
Class ProviderFactory
java.lang.Object
org.apache.cxf.jaxrs.provider.ProviderFactory
public final class ProviderFactory
- extends Object
Method Summary |
void |
clearProviders()
|
void |
clearThreadLocalProxies()
|
|
createContextProvider(Type contextType,
Message m)
|
<T> javax.ws.rs.ext.ContextResolver<T> |
|
createContextResolver(Type contextType,
Message m)
|
<T> javax.ws.rs.ext.ContextResolver<T> |
|
createContextResolver(Type contextType,
Message m,
javax.ws.rs.core.MediaType type)
|
<T extends Throwable>
javax.ws.rs.ext.ExceptionMapper<T> |
|
createExceptionMapper(Class<?> exceptionType,
Message m)
|
<T> javax.ws.rs.ext.MessageBodyReader<T> |
|
createMessageBodyReader(Class<T> bodyType,
Type parameterType,
Annotation[] parameterAnnotations,
javax.ws.rs.core.MediaType mediaType,
Message m)
|
<T> javax.ws.rs.ext.MessageBodyWriter<T> |
|
createMessageBodyWriter(Class<T> bodyType,
Type parameterType,
Annotation[] parameterAnnotations,
javax.ws.rs.core.MediaType mediaType,
Message m)
|
|
createParameterHandler(Class<?> paramType)
|
|
createResponseExceptionMapper(Class<?> paramType)
|
static ProviderFactory |
getInstance()
|
static ProviderFactory |
getInstance(Bus bus)
|
static ProviderFactory |
getInstance(Message m)
|
List<ProviderInfo<RequestHandler>> |
getRequestHandlers()
|
RequestPreprocessor |
getRequestPreprocessor()
|
List<ProviderInfo<ResponseHandler>> |
getResponseHandlers()
|
static ProviderFactory |
getSharedInstance()
|
void |
initProviders(List<ClassResourceInfo> cris)
|
void |
registerUserProvider(Object provider)
|
void |
setApplicationProvider(ProviderInfo<javax.ws.rs.core.Application> app)
|
void |
setBus(Bus bus)
|
void |
setRequestPreprocessor(RequestPreprocessor rp)
|
void |
setSchemaLocations(List<String> schemas)
|
void |
setUserProviders(List<?> userProviders)
Use for injection of entityProviders |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static ProviderFactory getInstance()
getInstance
public static ProviderFactory getInstance(Bus bus)
getInstance
public static ProviderFactory getInstance(Message m)
getSharedInstance
public static ProviderFactory getSharedInstance()
createContextResolver
public <T> javax.ws.rs.ext.ContextResolver<T> createContextResolver(Type contextType,
Message m)
createContextResolver
public <T> javax.ws.rs.ext.ContextResolver<T> createContextResolver(Type contextType,
Message m,
javax.ws.rs.core.MediaType type)
createContextProvider
public <T> ContextProvider<T> createContextProvider(Type contextType,
Message m)
createExceptionMapper
public <T extends Throwable> javax.ws.rs.ext.ExceptionMapper<T> createExceptionMapper(Class<?> exceptionType,
Message m)
createParameterHandler
public <T> ParameterHandler<T> createParameterHandler(Class<?> paramType)
createResponseExceptionMapper
public <T extends Throwable> ResponseExceptionMapper<T> createResponseExceptionMapper(Class<?> paramType)
createMessageBodyReader
public <T> javax.ws.rs.ext.MessageBodyReader<T> createMessageBodyReader(Class<T> bodyType,
Type parameterType,
Annotation[] parameterAnnotations,
javax.ws.rs.core.MediaType mediaType,
Message m)
getRequestHandlers
public List<ProviderInfo<RequestHandler>> getRequestHandlers()
getResponseHandlers
public List<ProviderInfo<ResponseHandler>> getResponseHandlers()
createMessageBodyWriter
public <T> javax.ws.rs.ext.MessageBodyWriter<T> createMessageBodyWriter(Class<T> bodyType,
Type parameterType,
Annotation[] parameterAnnotations,
javax.ws.rs.core.MediaType mediaType,
Message m)
registerUserProvider
public void registerUserProvider(Object provider)
setUserProviders
public void setUserProviders(List<?> userProviders)
- Use for injection of entityProviders
- Parameters:
entityProviders
- the entityProviders to set
setApplicationProvider
public void setApplicationProvider(ProviderInfo<javax.ws.rs.core.Application> app)
setRequestPreprocessor
public void setRequestPreprocessor(RequestPreprocessor rp)
getRequestPreprocessor
public RequestPreprocessor getRequestPreprocessor()
clearThreadLocalProxies
public void clearThreadLocalProxies()
clearProviders
public void clearProviders()
setBus
public void setBus(Bus bus)
setSchemaLocations
public void setSchemaLocations(List<String> schemas)
initProviders
public void initProviders(List<ClassResourceInfo> cris)
Apache CXF