Class CallbackServiceExporter
- All Implemented Interfaces:
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.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidprotected ServiceBusExporterCreates aServiceBusExporterbased on the properties set on this exporter.protected SoapServiceDefinitionCreates aSoapServiceDefinitionbased on the properties set on this exporter.final Booleanfinal URLprotected final Stringfinal ServiceBusfinal QNamefinal Stringfinal Stringfinal voidsetBusSecurity(Boolean busSecurity) voidsetCallbackService(Object callbackService) final voidsetEndpointUrl(URL endpointUrl) final voidsetLocalServiceName(String localServiceName) final voidsetServiceBus(ServiceBus serviceBus) voidsetServiceInterface(String serviceInterface) final voidsetServiceName(QName serviceName) final voidsetServiceNameSpaceURI(String serviceNameSpaceURI) final voidsetServicePath(String servicePath)
-
Constructor Details
-
CallbackServiceExporter
public CallbackServiceExporter()
-
-
Method Details
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
createServiceBusExporter
Creates aServiceBusExporterbased on the properties set on this exporter. Subclasses may override this method in order to customize how the exporter or it'sServiceDefinitionare created.- Returns:
- a fully constructed ServiceBusExporter which is ready to be exported
-
createSoapServiceDefinition
Creates aSoapServiceDefinitionbased on the properties set on this exporter. Subclasses may override this method in order to customize how the SOAP service definition is created.- Returns:
- the SoapServiceDefinition to be exported
-
getLocalServiceName
-
setLocalServiceName
-
getServiceNameSpaceURI
-
setServiceNameSpaceURI
-
getServiceName
-
setServiceName
-
getServicePath
-
setServicePath
-
getEndpointUrl
-
setEndpointUrl
-
getBusSecurity
-
setBusSecurity
-
getServiceInterface
-
setServiceInterface
-
getCallbackService
-
setCallbackService
-
getServiceBus
-
setServiceBus
-