public class CallbackServiceExporter extends Object implements org.springframework.beans.factory.InitializingBean
While it's perfectly legal for an application to handle publishing of callback service implementations to the
service registry manually using the ServiceBus
api or the ServiceBusExporter
, this class helps with
publishing the services in such a way that they are compatible with the requirements of how the specific callback
services are supposed to be published. This includes ensuring that information about the version of the callback
services is properly present in the service registry. This additionally ensures the service is published using the
correct type of ServiceDefinition
and the proper security settings. By default, callback services use SOAP
and have bus security turned on.
With the exception of the callbackService
, most of the properties on this class are passed through to
either a ServiceBusExporter
or a SoapServiceDefinition
. As a result, many of them are optional (see
the documentation on the aforementioned classes for details). The callback service must be injected into this class
or else an IllegalStateException
will be thrown during startup of this bean.
ServiceBusExporter
,
SoapServiceDefinition
Constructor and Description |
---|
CallbackServiceExporter() |
public CallbackServiceExporter()
public final void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
protected ServiceBusExporter createServiceBusExporter()
ServiceBusExporter
based on the properties set on this
exporter. Subclasses may override this method in order to customize how the exporter or it's
ServiceDefinition
are created.protected SoapServiceDefinition createSoapServiceDefinition()
SoapServiceDefinition
based on the properties set on this
exporter. Subclasses may override this method in order to customize how the SOAP service definition is created.protected final String getLocalServiceName()
public final void setLocalServiceName(String localServiceName)
public final String getServiceNameSpaceURI()
public final void setServiceNameSpaceURI(String serviceNameSpaceURI)
public final QName getServiceName()
public final void setServiceName(QName serviceName)
public final String getServicePath()
public final void setServicePath(String servicePath)
public final URL getEndpointUrl()
public final void setEndpointUrl(URL endpointUrl)
public final Boolean getBusSecurity()
public final void setBusSecurity(Boolean busSecurity)
public String getServiceInterface()
public void setServiceInterface(String serviceInterface)
public Object getCallbackService()
public void setCallbackService(Object callbackService)
public final ServiceBus getServiceBus()
public final void setServiceBus(ServiceBus serviceBus)
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.