public class LocalResteasyProviderFactory extends ResteasyProviderFactory
ResteasyProviderFactory.SortedKey<T>
RuntimeDelegate.HeaderDelegate<T>
builtinsRegistered, classContracts, clientDynamicFeatures, clientErrorInterceptors, clientExceptionMappers, clientExecutionInterceptorRegistry, clientMessageBodyReaders, clientMessageBodyWriters, clientReaderInterceptorRegistry, clientRequestFilters, clientResponseFilters, clientWriterInterceptorRegistry, containerRequestFilterRegistry, containerResponseFilterRegistry, contextResolvers, contextualData, enabledFeatures, exceptionMappers, featureClasses, featureInstances, headerDelegates, injectorFactory, instance, maxForwards, paramConverterProviders, parent, pfr, precedence, properties, providerClasses, providerInstances, registerBuiltinByDefault, registerBuiltins, serverDynamicFeatures, serverMessageBodyReaders, serverMessageBodyWriters, serverReaderInterceptorRegistry, serverWriterInterceptorRegistry, stringConverters, stringParameterUnmarshallers
JAXRS_RUNTIME_DELEGATE_PROPERTY
Constructor and Description |
---|
LocalResteasyProviderFactory(ResteasyProviderFactory factory) |
Modifier and Type | Method and Description |
---|---|
Map<Class<?>,Integer> |
getContracts(Class<?> componentClass)
Get the extension contract registration information for a component of a given class.
|
Set<Class<?>> |
getProviderClasses()
Copy
|
Set<Object> |
getProviderInstances()
Copy
|
RuntimeType |
getRuntimeType()
Get the runtime type of this configuration context.
|
boolean |
isEnabled(Class<? extends Feature> featureClass)
Check if a
feature instance of featureClass class has been
previously enabled in the runtime configuration context. |
boolean |
isEnabled(Feature feature)
Check if a particular
feature instance has been previously
enabled in the runtime configuration context. |
boolean |
isRegistered(Class<?> componentClass)
Check if a JAX-RS component of the supplied
componentClass class has been previously
registered in the runtime configuration context. |
addClientErrorInterceptor, addClientExceptionMapper, addClientExceptionMapper, addClientExceptionMapper, addClientExceptionMapper, addClientMessageBodyReader, addClientMessageBodyWriter, addContextDataLevel, addContextResolver, addContextResolver, addContextResolver, addContextResolver, addContextResolver, addExceptionMapper, addExceptionMapper, addExceptionMapper, addExceptionMapper, addHeaderDelegate, addMessageBodyReader, addMessageBodyReader, addMessageBodyReader, addMessageBodyReader, addMessageBodyWriter, addMessageBodyWriter, addMessageBodyWriter, addServerMessageBodyReader, addServerMessageBodyWriter, addStringConverter, addStringConverter, addStringConverter, addStringConverter, addStringParameterUnmarshaller, appendInterceptorPrecedence, clearContextData, clearInstanceIfEqual, createConstructorInjector, createEndpoint, createHeaderDelegate, createHeaderDelegateFromInterfaces, createLinkBuilder, createProviderInstance, createResponseBuilder, createStringParameterUnmarshaller, createUriBuilder, createVariantListBuilder, getClassContracts, getClasses, getClientDynamicFeatures, getClientErrorInterceptors, getClientExceptionMapper, getClientExceptionMappers, getClientExecutionInterceptorRegistry, getClientMessageBodyReader, getClientMessageBodyReaders, getClientMessageBodyWriter, getClientMessageBodyWriters, getClientReaderInterceptorRegistry, getClientRequestFilters, getClientResponseFilters, getClientWriterInterceptorRegistry, getConcreteMediaTypeFromMessageBodyWriters, getConfiguration, getContainerRequestFilterRegistry, getContainerResponseFilterRegistry, getContextData, getContextDataLevelCount, getContextDataMap, getContextResolver, getContextResolvers, getContextResolvers, getEnabledFeatures, getExceptionMapper, getExceptionMappers, getFeatureClasses, getFeatureInstances, getHeaderDelegate, getHeaderDelegates, getInjectorFactory, getInstance, getInstances, getMessageBodyReader, getMessageBodyWriter, getMutableProperties, getParamConverter, getParamConverterProviders, getParent, getPossibleMessageBodyWritersMap, getPrecedence, getPriority, getProperties, getProperty, getPropertyNames, getServerDynamicFeatures, getServerMessageBodyReader, getServerMessageBodyReaders, getServerMessageBodyWriter, getServerMessageBodyWriters, getServerReaderInterceptorRegistry, getServerWriterInterceptorRegistry, getStringConverter, getStringConverters, getStringParameterUnmarshallers, initialize, injectedInstance, injectedInstance, injectProperties, injectProperties, injectProperties, insertInterceptorPrecedenceAfter, insertInterceptorPrecedenceBefore, isA, isA, isBuiltinsRegistered, isRegisterBuiltins, isRegistered, peekInstance, popContextData, property, pushContext, pushContextDataMap, register, register, register, register, register, register, register, register, registerDefaultInterceptorPrecedences, registerDefaultInterceptorPrecedences, registerProvider, registerProvider, registerProvider, registerProviderInstance, registerProviderInstance, removeContextDataLevel, resolveMessageBodyReader, resolveMessageBodyWriter, setBuiltinsRegistered, setInjectorFactory, setInstance, setProperties, setRegisterBuiltinByDefault, setRegisterBuiltins, toHeaderString, toString
setInstance
public LocalResteasyProviderFactory(ResteasyProviderFactory factory)
public boolean isEnabled(Feature feature)
Configuration
feature
instance has been previously
enabled in the runtime configuration context.
Method returns true
only in case an instance equal to the feature
instance is already present among the features previously successfully enabled in
the configuration context.
isEnabled
in interface Configuration
isEnabled
in class ResteasyProviderFactory
feature
- a feature instance to test for.true
if the feature instance has been previously enabled in this
configuration context, false
otherwise.public boolean isEnabled(Class<? extends Feature> featureClass)
Configuration
feature
instance of featureClass
class has been
previously enabled in the runtime configuration context.
Method returns true
in case any instance of the featureClass
class is
already present among the features previously successfully enabled in the configuration
context.
isEnabled
in interface Configuration
isEnabled
in class ResteasyProviderFactory
featureClass
- a feature class to test for.true
if a feature of a given class has been previously enabled in this
configuration context, false
otherwise.public boolean isRegistered(Class<?> componentClass)
Configuration
componentClass
class has been previously
registered in the runtime configuration context.
Method returns true
in case a component of the supplied componentClass
class
is already present among the previously registered component classes or instances
in the configuration context.
isRegistered
in interface Configuration
isRegistered
in class ResteasyProviderFactory
componentClass
- a component class to test for.true
if a component of a given class has been previously registered in this
configuration context, false
otherwise.Configuration.isEnabled(Class)
public Map<Class<?>,Integer> getContracts(Class<?> componentClass)
Configuration
Map
. Method does not return null
.getContracts
in interface Configuration
getContracts
in class ResteasyProviderFactory
public Set<Class<?>> getProviderClasses()
ResteasyProviderFactory
getProviderClasses
in class ResteasyProviderFactory
public Set<Object> getProviderInstances()
ResteasyProviderFactory
getProviderInstances
in class ResteasyProviderFactory
public RuntimeType getRuntimeType()
Configuration
getRuntimeType
in interface Configuration
getRuntimeType
in class ResteasyProviderFactory
Copyright © 2017 JBoss by Red Hat. All rights reserved.