Apache CXF API

org.apache.cxf.jaxrs
Class JAXRSServiceFactoryBean

java.lang.Object
  extended by org.apache.cxf.service.factory.AbstractServiceFactoryBean
      extended by org.apache.cxf.jaxrs.JAXRSServiceFactoryBean

public class JAXRSServiceFactoryBean
extends AbstractServiceFactoryBean

Builds a JAX-RS service model from resource classes.


Field Summary
protected  List<ClassResourceInfo> classResourceInfos
           
 
Fields inherited from class org.apache.cxf.service.factory.AbstractServiceFactoryBean
dataBindingSet, schemaLocations
 
Constructor Summary
JAXRSServiceFactoryBean()
           
 
Method Summary
 Service create()
           
protected  Invoker createInvoker()
           
protected  ClassResourceInfo createResourceInfo(Class cls, boolean isRoot)
           
 List<ClassResourceInfo> getClassResourceInfo()
           
 Executor getExecutor()
           
 Invoker getInvoker()
           
 List<Class<?>> getResourceClasses()
           
 QName getServiceName()
           
protected  void initializeServiceModel()
           
 void setEnableStaticResolution(boolean staticResolution)
           
 void setExecutor(Executor executor)
           
 void setInvoker(Invoker invoker)
           
 void setResourceClass(Class cls)
           
 void setResourceClasses(Class... classes)
           
 void setResourceClasses(List<Class> classes)
           
 void setResourceClassesFromBeans(List<Object> beans)
           
 void setService(Service service)
           
 void setServiceName(QName name)
           
 void setUserResources(List<UserResource> resources)
           
 void setUserResourcesWithServiceClass(List<UserResource> resources, Class<?>... sClasses)
           
 
Methods inherited from class org.apache.cxf.service.factory.AbstractServiceFactoryBean
createDefaultDataBinding, getBus, getDataBinding, getDataBinding, getService, getSessionState, initializeDataBindings, initializeDefaultInterceptors, sendEvent, setBus, setDataBinding
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

classResourceInfos

protected List<ClassResourceInfo> classResourceInfos
Constructor Detail

JAXRSServiceFactoryBean

public JAXRSServiceFactoryBean()
Method Detail

setServiceName

public void setServiceName(QName name)

getServiceName

public QName getServiceName()

setEnableStaticResolution

public void setEnableStaticResolution(boolean staticResolution)

create

public Service create()
Specified by:
create in class AbstractServiceFactoryBean

getExecutor

public Executor getExecutor()

setExecutor

public void setExecutor(Executor executor)

getInvoker

public Invoker getInvoker()

setInvoker

public void setInvoker(Invoker invoker)

getResourceClasses

public List<Class<?>> getResourceClasses()

getClassResourceInfo

public List<ClassResourceInfo> getClassResourceInfo()

setResourceClass

public void setResourceClass(Class cls)

setResourceClasses

public void setResourceClasses(List<Class> classes)

setUserResources

public void setUserResources(List<UserResource> resources)

setUserResourcesWithServiceClass

public void setUserResourcesWithServiceClass(List<UserResource> resources,
                                             Class<?>... sClasses)

createResourceInfo

protected ClassResourceInfo createResourceInfo(Class cls,
                                               boolean isRoot)

setResourceClasses

public void setResourceClasses(Class... classes)

setResourceClassesFromBeans

public void setResourceClassesFromBeans(List<Object> beans)

initializeServiceModel

protected void initializeServiceModel()

createInvoker

protected Invoker createInvoker()

setService

public void setService(Service service)
Overrides:
setService in class AbstractServiceFactoryBean

Apache CXF API

Apache CXF