Package org.apache.cxf.jaxws
Class JaxWsServerFactoryBean
- All Implemented Interfaces:
InterceptorProvider
- Direct Known Subclasses:
NamespaceHandler.SpringServerFactoryBean
Bean to help easily create Server endpoints for JAX-WS.
JaxWsServerFactoryBean sf = new JaxWsServerFactoryBean();
sf.setServiceClass(MyService.class);
sf.setAddress("http://acme.com/myService");
sf.create();
This will start a server and register it with the ServerManager.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected List<jakarta.xml.ws.handler.Handler>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 -
Method Summary
Modifier and TypeMethodDescriptionvoidaddHandlers(List<jakarta.xml.ws.handler.Handler> h) create()protected BindingInfoprotected InvokerList<jakarta.xml.ws.handler.Handler>protected voidinitializeAnnotationInterceptors(Endpoint ep, Class<?>... cls) Add annotated Interceptors and Features to the Endpointprotected voidinjectResources(Object instance) voidsetBlockInjection(boolean b) No injection or PostConstruct will be called if this is set to true.voidsetBlockPostConstruct(boolean blockPostConstruct) voidsetHandlers(List<jakarta.xml.ws.handler.Handler> h) Methods inherited from class org.apache.cxf.frontend.ServerFactoryBean
applyFeatures, detectTransportIdFromAddress, getBeanName, getInvoker, getSchemaLocations, getServer, getServiceBean, getServiceBeanClass, getWSDLEndpointFactory, getWsdlLocation, initializeServiceFactory, isStart, setInvoker, setSchemaLocations, setServiceBean, setStart, setWsdlLocationMethods inherited from class org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory
createEndpoint, createEndpointInfo, createSoapBindingConfig, getServiceClass, getServiceFactory, getWsdlURL, setServiceClass, setServiceFactory, setWsdlURLMethods inherited from class org.apache.cxf.endpoint.AbstractEndpointFactory
addToBeans, checkPrivateEndpoint, getAddress, getBindingConfig, getBindingFactory, getBindingId, getBus, getBus, getConduitSelector, getDataBinding, getDestinationFactory, getEndpointName, getFeatures, getProperties, getProperties, getPublishedEndpointUrl, getServiceName, getTransportId, initializeAnnotationInterceptors, initializeAnnotationInterceptors, setAddress, setBindingConfig, setBindingFactory, setBindingId, setBus, setConduitSelector, setDataBinding, setDestinationFactory, setEndpointName, setEndpointReference, setFeatures, setProperties, setPublishedEndpointUrl, setServiceName, setTransportIdMethods inherited from class org.apache.cxf.interceptor.AbstractBasicInterceptorProvider
getInFaultInterceptors, getInInterceptors, getOutFaultInterceptors, getOutInterceptors, setInFaultInterceptors, setInInterceptors, setOutFaultInterceptors, setOutInterceptors
-
Field Details
-
doInit
protected boolean doInit -
handlers
-
-
Constructor Details
-
JaxWsServerFactoryBean
public JaxWsServerFactoryBean() -
JaxWsServerFactoryBean
-
-
Method Details
-
getJaxWsServiceFactory
-
setHandlers
-
addHandlers
-
getHandlers
-
initializeAnnotationInterceptors
Add annotated Interceptors and Features to the Endpoint- Overrides:
initializeAnnotationInterceptorsin classAbstractEndpointFactory- Parameters:
ep-
-
createInvoker
- Overrides:
createInvokerin classServerFactoryBean
-
createBindingInfo
- Overrides:
createBindingInfoin classAbstractWSDLBasedEndpointFactory
-
create
- Overrides:
createin classServerFactoryBean
-
injectResources
- Parameters:
instance-
-
setBlockPostConstruct
public void setBlockPostConstruct(boolean blockPostConstruct) - Parameters:
blockPostConstruct-
-
setBlockInjection
public void setBlockInjection(boolean b) No injection or PostConstruct will be called if this is set to true. If the container has already handled the injection, this should be set to true.- Parameters:
b-
-