org.apache.cxf.jaxrs
Class JAXRSServiceFactoryBean
java.lang.Object
org.apache.cxf.service.factory.AbstractServiceFactoryBean
org.apache.cxf.jaxrs.JAXRSServiceFactoryBean
public class JAXRSServiceFactoryBean
- extends AbstractServiceFactoryBean
Builds a JAX-RS service model from resource classes.
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 |
classResourceInfos
protected List<ClassResourceInfo> classResourceInfos
JAXRSServiceFactoryBean
public JAXRSServiceFactoryBean()
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