public abstract class AbstractServiceDefinition extends Object implements ServiceDefinition
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractServiceDefinition() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract ServiceConfiguration |
configure() |
boolean |
equals(Object object) |
Endpoint |
establishEndpoint()
Establishes and returns an
Endpoint to this service which
generates the ServiceConfiguration for this service definition
as well as including the actual service implementation as provided by
ServiceDefinition.getService(). |
String |
getApplicationId()
Returns the id of the application which owns this service.
|
Boolean |
getBusSecurity()
Returns true if this service is secured by standard KSB security features.
|
CredentialsType |
getCredentialsType()
Returns the type of security credentials that should be used when
attempting to authorize access to this service.
|
URL |
getEndpointUrl()
Returns the URL of the endpoint which provides this service.
|
String |
getInstanceId()
Returns the id of the specific instance of the application which owns this service
|
String |
getLocalServiceName() |
String |
getMessageExceptionHandler()
Returns the name of the exception handler to invoke whenever messages to
this service fail to be sent.
|
Long |
getMillisToLive()
Returns the maximum amount of milliseconds a message to this service can
live and attempt to be processed successfully by this service before it's
forced into processing by it's exception handler.
|
Integer |
getPriority()
Returns the processing priority for messages that are sent to this service.
|
Integer |
getRetryAttempts()
Returns the retry attempts to use when processing messages sent to this
service.
|
Object |
getService()
Return the actual service implementation to publish and export to the
service bus.
|
ClassLoader |
getServiceClassLoader()
Returns the
ClassLoader that should be set as the context
classloader on the thread prior to any invocations on the service |
QName |
getServiceName()
Returns the qualified name for this service.
|
String |
getServiceNameSpaceURI() |
String |
getServicePath()
Returns the url path to export the service under.
|
String |
getServiceVersion()
Returns the version of this service.
|
int |
hashCode() |
boolean |
isBasicAuthentication()
Returns whether the service is secured with basic authentication
|
boolean |
isQueue()
Return true if this service uses queue-style messaging, false if it uses
topic-style messaging.
|
void |
setApplicationId(String applicationId) |
void |
setBasicAuthentication(boolean basicAuthentication) |
void |
setBusSecurity(Boolean busSecurity) |
void |
setCredentialsType(CredentialsType credentialsType) |
void |
setEndpointUrl(URL endpointUrl) |
void |
setInstanceId(String instanceId) |
void |
setLocalServiceName(String serviceName) |
void |
setMessageExceptionHandler(String messageExceptionHandler) |
void |
setMillisToLive(Long millisToLive) |
void |
setPriority(Integer priority) |
void |
setQueue(boolean queue) |
void |
setRetryAttempts(Integer retryAttempts) |
void |
setService(Object service) |
void |
setServiceClassLoader(ClassLoader serviceClassLoader) |
void |
setServiceName(QName serviceName) |
void |
setServiceNameSpaceURI(String serviceNameSpaceURI) |
void |
setServicePath(String servicePath) |
void |
setServiceVersion(String serviceVersion) |
String |
toString() |
void |
validate()
Validates the service definition after creation of the service definition.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetTypeprotected AbstractServiceDefinition()
public boolean isBasicAuthentication()
ServiceDefinitionisBasicAuthentication in interface ServiceDefinitionpublic void setBasicAuthentication(boolean basicAuthentication)
basicAuthentication - the basicAuthentication to setpublic Object getService()
ServiceDefinitiongetService in interface ServiceDefinitionpublic void setService(Object service)
public String getLocalServiceName()
public void setLocalServiceName(String serviceName)
public String getMessageExceptionHandler()
ServiceDefinitiongetMessageExceptionHandler in interface ServiceDefinitionpublic void setMessageExceptionHandler(String messageExceptionHandler)
public Integer getPriority()
ServiceDefinitiongetPriority in interface ServiceDefinitionpublic void setPriority(Integer priority)
public boolean isQueue()
ServiceDefinitionisQueue in interface ServiceDefinitionpublic void setQueue(boolean queue)
public Integer getRetryAttempts()
ServiceDefinitiongetRetryAttempts in interface ServiceDefinitionpublic void setRetryAttempts(Integer retryAttempts)
public QName getServiceName()
ServiceDefinitiongetServiceName in interface ServiceDefinitionpublic void setServiceName(QName serviceName)
public URL getEndpointUrl()
ServiceDefinitiongetEndpointUrl in interface ServiceDefinitionpublic void setEndpointUrl(URL endpointUrl)
public void setCredentialsType(CredentialsType credentialsType)
public CredentialsType getCredentialsType()
ServiceDefinitiongetCredentialsType in interface ServiceDefinitionpublic String getServiceVersion()
ServiceDefinitiongetServiceVersion in interface ServiceDefinitionpublic void setServiceVersion(String serviceVersion)
public String getApplicationId()
ServiceDefinitiongetApplicationId in interface ServiceDefinitionpublic void setApplicationId(String applicationId)
public String getInstanceId()
ServiceDefinitiongetInstanceId in interface ServiceDefinitionpublic void setInstanceId(String instanceId)
public ClassLoader getServiceClassLoader()
ServiceDefinitionClassLoader that should be set as the context
classloader on the thread prior to any invocations on the servicegetServiceClassLoader in interface ServiceDefinitionpublic void setServiceClassLoader(ClassLoader serviceClassLoader)
public void validate()
ServiceDefinitionvalidate in interface ServiceDefinitionpublic Endpoint establishEndpoint()
ServiceDefinitionEndpoint to this service which
generates the ServiceConfiguration for this service definition
as well as including the actual service implementation as provided by
ServiceDefinition.getService().
The ServiceDefinition.validate() method should be invoked prior to executing
this method in order to ensure that the appropriate internal state for
the ServiceDefinition has been established.
establishEndpoint in interface ServiceDefinitionprotected abstract ServiceConfiguration configure()
public String getServiceNameSpaceURI()
public void setServiceNameSpaceURI(String serviceNameSpaceURI)
public Long getMillisToLive()
ServiceDefinitiongetMillisToLive in interface ServiceDefinitionpublic void setMillisToLive(Long millisToLive)
public Boolean getBusSecurity()
ServiceDefinitiongetBusSecurity in interface ServiceDefinitionpublic void setBusSecurity(Boolean busSecurity)
public String getServicePath()
ServiceDefinitiongetServicePath in interface ServiceDefinitionpublic void setServicePath(String servicePath)
servicePath - the servicePath to setCopyright © 2005–2016 The Kuali Foundation. All rights reserved.