org.apache.cxf.jaxrs.spring
Class JAXRSServerFactoryBeanDefinitionParser.SpringJAXRSServerFactoryBean

java.lang.Object
  extended by org.apache.cxf.interceptor.AbstractBasicInterceptorProvider
      extended by org.apache.cxf.endpoint.AbstractEndpointFactory
          extended by org.apache.cxf.jaxrs.AbstractJAXRSFactoryBean
              extended by org.apache.cxf.jaxrs.JAXRSServerFactoryBean
                  extended by org.apache.cxf.jaxrs.spring.JAXRSServerFactoryBeanDefinitionParser.SpringJAXRSServerFactoryBean
All Implemented Interfaces:
org.apache.cxf.interceptor.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
JAXRSServerFactoryBeanDefinitionParser.SpringJAXRSServerFactoryBean()
           
JAXRSServerFactoryBeanDefinitionParser.SpringJAXRSServerFactoryBean(JAXRSServiceFactoryBean sf)
           
 
Method Summary
 void destroy()
           
 void setApplicationContext(org.springframework.context.ApplicationContext ctx)
           
 void setBasePackages(List<String> basePackages)
           
 void setProviders(List<? extends Object> beans)
          Add custom JAX-RS providers to the list of providers
 void setResourceProviders(List<ResourceProvider> rps)
          Sets the list of providers managing the life-cycle of the resource classes
 void setServiceAnnotation(String serviceAnnotation)
           
 void setServiceBeans(List<Object> beans)
          Sets the resource beans.
 void setTempResourceProviders(List<SpringResourceFactory> providers)
           
 
Methods inherited from class org.apache.cxf.jaxrs.JAXRSServerFactoryBean
applyFeatures, create, createInvoker, getDocLocation, getResourceClasses, getServer, init, injectContexts, setApplication, setApplication, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JAXRSServerFactoryBeanDefinitionParser.SpringJAXRSServerFactoryBean

public JAXRSServerFactoryBeanDefinitionParser.SpringJAXRSServerFactoryBean()

JAXRSServerFactoryBeanDefinitionParser.SpringJAXRSServerFactoryBean

public JAXRSServerFactoryBeanDefinitionParser.SpringJAXRSServerFactoryBean(JAXRSServiceFactoryBean sf)
Method Detail

destroy

public void destroy()

setServiceBeans

public void setServiceBeans(List<Object> beans)
Description copied from class: JAXRSServerFactoryBean
Sets the resource beans. If this is set then the JAX-RS runtime will not be responsible for the life-cycle of resource classes.

Overrides:
setServiceBeans in class JAXRSServerFactoryBean
Parameters:
beans - the list of resource instances

setProviders

public void setProviders(List<? extends Object> beans)
Description copied from class: AbstractJAXRSFactoryBean
Add custom JAX-RS providers to the list of providers

Overrides:
setProviders in class AbstractJAXRSFactoryBean

setResourceProviders

public void setResourceProviders(List<ResourceProvider> rps)
Description copied from class: JAXRSServerFactoryBean
Sets the list of providers managing the life-cycle of the resource classes

Overrides:
setResourceProviders in class JAXRSServerFactoryBean
Parameters:
rps - resource providers

setBasePackages

public void setBasePackages(List<String> basePackages)

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:
setApplicationContext in interface org.springframework.context.ApplicationContextAware
Throws:
org.springframework.beans.BeansException


Apache CXF