Package org.apache.cxf.jaxrs.spring
Class AbstractSpringComponentScanServer
- java.lang.Object
-
- org.apache.cxf.interceptor.AbstractBasicInterceptorProvider
-
- org.apache.cxf.jaxrs.spring.AbstractSpringConfigurationFactory
-
- org.apache.cxf.jaxrs.spring.AbstractSpringComponentScanServer
-
- All Implemented Interfaces:
org.apache.cxf.interceptor.InterceptorProvider,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
- Direct Known Subclasses:
SpringComponentScanServer
@ComponentScan(includeFilters=) public abstract class AbstractSpringComponentScanServer extends AbstractSpringConfigurationFactory
-
-
Field Summary
-
Fields inherited from class org.apache.cxf.jaxrs.spring.AbstractSpringConfigurationFactory
applicationContext
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractSpringComponentScanServer()protectedAbstractSpringComponentScanServer(Class<? extends Annotation> serviceAnnotation)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddCxfProvider(Object bean)protected voidaddCxfProvidersFromClasses(Collection<Class<?>> classes)protected JAXRSServerFactoryBeancreateFactoryBeanFromApplication(javax.ws.rs.core.Application app)protected org.apache.cxf.endpoint.ServercreateJaxRsServer()List<org.apache.cxf.feature.Feature>getFeatures()protected List<Object>getJaxrsProviders()protected List<ResourceProvider>getResourceProviders()protected <A extends Annotation>
booleanisAnnotationAvailable(String beanName, Class<A> annClass)protected booleanisComponentMatched(String beanName, Set<String> componentScanPackagesSet, Set<String> componentScanBeansSet)protected booleanisValidComponent(String beanName, Class<? extends Annotation> ann, Set<String> componentScanPackagesSet, Set<String> componentScanBeansSet)protected booleanmatchesComponentName(String beanName, Set<String> componentScanBeansSet)protected booleanmatchesComponentPackage(String beanName, Set<String> componentScanPackagesSet)protected booleanmatchesServiceAnnotation(String beanName)protected booleannonProxyClass(String beanName)protected static Set<String>parseSetProperty(String componentScanProp)protected voidsetFactoryCxfProviders(JAXRSServerFactoryBean factory)protected voidsetJaxrsResources(JAXRSServerFactoryBean factory)-
Methods inherited from class org.apache.cxf.jaxrs.spring.AbstractSpringConfigurationFactory
finalizeFactorySetup, getAddress, getBus, getTransportId, parseMapSequence, setApplicationContext
-
-
-
-
Constructor Detail
-
AbstractSpringComponentScanServer
protected AbstractSpringComponentScanServer()
-
AbstractSpringComponentScanServer
protected AbstractSpringComponentScanServer(Class<? extends Annotation> serviceAnnotation)
-
-
Method Detail
-
createJaxRsServer
protected org.apache.cxf.endpoint.Server createJaxRsServer()
- Overrides:
createJaxRsServerin classAbstractSpringConfigurationFactory
-
setJaxrsResources
protected void setJaxrsResources(JAXRSServerFactoryBean factory)
- Specified by:
setJaxrsResourcesin classAbstractSpringConfigurationFactory
-
setFactoryCxfProviders
protected void setFactoryCxfProviders(JAXRSServerFactoryBean factory)
-
addCxfProvidersFromClasses
protected void addCxfProvidersFromClasses(Collection<Class<?>> classes)
-
isValidComponent
protected boolean isValidComponent(String beanName, Class<? extends Annotation> ann, Set<String> componentScanPackagesSet, Set<String> componentScanBeansSet)
-
isComponentMatched
protected boolean isComponentMatched(String beanName, Set<String> componentScanPackagesSet, Set<String> componentScanBeansSet)
-
nonProxyClass
protected boolean nonProxyClass(String beanName)
-
matchesComponentName
protected boolean matchesComponentName(String beanName, Set<String> componentScanBeansSet)
-
matchesComponentPackage
protected boolean matchesComponentPackage(String beanName, Set<String> componentScanPackagesSet)
-
addCxfProvider
protected void addCxfProvider(Object bean)
-
matchesServiceAnnotation
protected boolean matchesServiceAnnotation(String beanName)
-
isAnnotationAvailable
protected <A extends Annotation> boolean isAnnotationAvailable(String beanName, Class<A> annClass)
-
getResourceProviders
protected List<ResourceProvider> getResourceProviders()
-
getJaxrsProviders
protected List<Object> getJaxrsProviders()
- Overrides:
getJaxrsProvidersin classAbstractSpringConfigurationFactory
-
getFeatures
public List<org.apache.cxf.feature.Feature> getFeatures()
- Overrides:
getFeaturesin classAbstractSpringConfigurationFactory
-
createFactoryBeanFromApplication
protected JAXRSServerFactoryBean createFactoryBeanFromApplication(javax.ws.rs.core.Application app)
-
-