Package org.apache.cxf.jaxrs.spring
Class JAXRSServerFactoryBeanDefinitionParser.SpringJAXRSServerFactoryBean
- java.lang.Object
-
- org.apache.cxf.interceptor.AbstractBasicInterceptorProvider
-
- org.apache.cxf.endpoint.AbstractEndpointFactory
-
- org.apache.cxf.jaxrs.AbstractJAXRSFactoryBean
-
- org.apache.cxf.jaxrs.JAXRSServerFactoryBean
-
- org.apache.cxf.jaxrs.spring.JAXRSServerFactoryBeanDefinitionParser.SpringJAXRSServerFactoryBean
-
- All Implemented Interfaces:
InterceptorProvider,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
- Enclosing class:
- JAXRSServerFactoryBeanDefinitionParser
public static class JAXRSServerFactoryBeanDefinitionParser.SpringJAXRSServerFactoryBean extends JAXRSServerFactoryBean implements org.springframework.context.ApplicationContextAware
-
-
Field Summary
-
Fields inherited from class org.apache.cxf.jaxrs.JAXRSServerFactoryBean
resourceProviders
-
Fields inherited from class org.apache.cxf.jaxrs.AbstractJAXRSFactoryBean
entityProviders, schemaLocations, serviceFactory
-
Fields inherited from class org.apache.cxf.endpoint.AbstractEndpointFactory
address, bindingConfig, bindingFactory, bindingId, bus, conduitSelector, dataBinding, destinationFactory, endpointName, endpointReference, features, properties, publishedEndpointUrl, serviceName, transportId
-
-
Constructor Summary
Constructors Constructor Description SpringJAXRSServerFactoryBean()SpringJAXRSServerFactoryBean(JAXRSServiceFactoryBean sf)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()voidsetApplicationContext(org.springframework.context.ApplicationContext ctx)voidsetBasePackages(List<String> basePackages)voidsetProviders(List<? extends Object> beans)Add custom JAX-RS providers to the list of providersvoidsetResourceProviders(List<ResourceProvider> rps)Sets the list of providers managing the life-cycle of the resource classesvoidsetServiceAnnotation(String serviceAnnotation)voidsetServiceBeans(List<Object> beans)Sets the resource beans.voidsetTempResourceProviders(List<SpringResourceFactory> providers)-
Methods inherited from class org.apache.cxf.jaxrs.JAXRSServerFactoryBean
applyBusFeatures, applyFeatures, create, createInvoker, getDocLocation, getResourceClasses, getServer, init, injectContexts, setApplication, setApplicationInfo, setBeanInfo, setDefaultResourceProvider, setDocLocation, setExtensionMappings, setInvoker, setLanguageMappings, setResourceClasses, setResourceClasses, setResourceComparator, setResourceProvider, setResourceProvider, setServiceBean, setServiceBeanObjects, setServiceClass, setStart, setStaticSubresourceResolution, setupFactory, updateClassResourceProviders
-
Methods inherited from class org.apache.cxf.jaxrs.AbstractJAXRSFactoryBean
checkResources, createBindingInfo, createEndpoint, createEndpointInfo, getBus, getProviders, getServiceFactory, isValidClassResourceInfo, setBus, setDataBindingProvider, setModelBeans, setModelBeans, setModelBeansWithServiceClass, setModelRef, setModelRefWithServiceClass, setProvider, setProviderComparator, setSchemaLocation, setSchemaLocations, setServiceFactory, setServiceName, setupFactory
-
Methods inherited from class org.apache.cxf.endpoint.AbstractEndpointFactory
addToBeans, checkPrivateEndpoint, getAddress, getBindingConfig, getBindingFactory, getBindingId, getBus, getConduitSelector, getDataBinding, getDestinationFactory, getEndpointName, getFeatures, getProperties, getProperties, getPublishedEndpointUrl, getServiceName, getTransportId, initializeAnnotationInterceptors, initializeAnnotationInterceptors, initializeAnnotationInterceptors, setAddress, setBindingConfig, setBindingFactory, setBindingId, setConduitSelector, setDataBinding, setDestinationFactory, setEndpointName, setEndpointReference, setFeatures, setProperties, setPublishedEndpointUrl, setTransportId
-
Methods inherited from class org.apache.cxf.interceptor.AbstractBasicInterceptorProvider
getInFaultInterceptors, getInInterceptors, getOutFaultInterceptors, getOutInterceptors, setInFaultInterceptors, setInInterceptors, setOutFaultInterceptors, setOutInterceptors
-
-
-
-
Constructor Detail
-
SpringJAXRSServerFactoryBean
public SpringJAXRSServerFactoryBean()
-
SpringJAXRSServerFactoryBean
public SpringJAXRSServerFactoryBean(JAXRSServiceFactoryBean sf)
-
-
Method Detail
-
destroy
public void destroy()
-
setServiceBeans
public void setServiceBeans(List<Object> beans)
Description copied from class:JAXRSServerFactoryBeanSets the resource beans. If this is set then the JAX-RS runtime will not be responsible for the life-cycle of resource classes.- Overrides:
setServiceBeansin classJAXRSServerFactoryBean- Parameters:
beans- the list of resource instances
-
setProviders
public void setProviders(List<? extends Object> beans)
Description copied from class:AbstractJAXRSFactoryBeanAdd custom JAX-RS providers to the list of providers- Overrides:
setProvidersin classAbstractJAXRSFactoryBean- Parameters:
beans- the entity providers
-
setResourceProviders
public void setResourceProviders(List<ResourceProvider> rps)
Description copied from class:JAXRSServerFactoryBeanSets the list of providers managing the life-cycle of the resource classes- Overrides:
setResourceProvidersin classJAXRSServerFactoryBean- Parameters:
rps- resource providers
-
setServiceAnnotation
public void setServiceAnnotation(String serviceAnnotation)
-
setTempResourceProviders
public void setTempResourceProviders(List<SpringResourceFactory> providers)
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext ctx) throws org.springframework.beans.BeansException- Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
-