|
Sonic ESB API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sonicsw.esb.service.common.impl.core.AbstractXQService
com.sonicsw.esb.service.common.impl.AbstractSFCServiceImpl
public abstract class AbstractSFCServiceImpl
Constructor Summary | |
---|---|
AbstractSFCServiceImpl()
Constructs a service instance. |
Method Summary | |
---|---|
void |
destroy()
Called by the SonicXQ framework when the service is no longer needed. |
void |
doDestroy()
Perform service-specific destroy tasks. |
void |
doInit(SFCInitializationContext context)
Perform service-specific initialization. |
void |
doNotCreateApplicationContexts()
For testing outside of Spring: prevent the creation of any new application contexts. |
abstract void |
doService(SFCServiceContext context,
XQEnvelope envelope)
Handles an incoming message envelope. |
void |
doStart()
Perform service-specific start tasks. |
void |
doStop()
Perform service-specific stop tasks. |
java.lang.String |
getCopyright()
Provides the copyright string for this service type. |
java.lang.String |
getDisplayName()
Provides the display name of this service type. |
java.lang.String |
getName()
Provides the name of this service type. |
VersionNumber |
getVersion()
Provides the version number for this service type. |
void |
init(XQInitContext xqInitContext)
Called by the SonicXQ framework during initialization of this service. |
void |
service(XQServiceContext xqContext)
Called by the SonicXQ framework to invoke the service when a message is sent to the service. |
void |
setApplicationContext(ApplicationContext applicationContext)
|
void |
setContainerMetricsHandler(ContainerMetricsHandler metricsHandler)
|
void |
setDefaultMetricsProvider(MetricsCapable defaultMetricsProvider)
|
void |
setDefaultNotificationsProvider(NotificationsCapable defaultNotificationsProvider)
|
void |
setDiagnosticContextFactory(com.sonicsw.esb.service.common.impl.SFCDiagnosticContextFactory diagnosticContextFactory)
|
void |
setInitializationContext(SFCInitializationContext initContext)
|
void |
setMetricsBuilder(MetricsBuilder metricsBuilder)
|
void |
setNotificationsHandler(NotificationsHandler notificationsHandler)
|
void |
setServiceContextFactory(SFCServiceContextFactory contextFactory)
|
void |
setServiceDelegate(SFCService delegate)
|
void |
setServiceDescriptor(SFCServiceDescriptor serviceDescriptor)
|
void |
setServiceMetricsHandler(ServiceMetricsHandler metricsHandler)
|
void |
start()
Called by the SonicXQ framework when the service is started. |
void |
stop()
Called by the SonicXQ framework when the service is stopped. |
Methods inherited from class com.sonicsw.esb.service.common.impl.core.AbstractXQService |
---|
disableInstanceMetric, enableInstanceMetric, setMetricsRegistrar |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractSFCServiceImpl()
Method Detail |
---|
public final void init(XQInitContext xqInitContext) throws XQServiceException
XQService
init
in interface XQService
xqInitContext
- an XQInitContext
from which the
service can obtain any necessary initialization information
XQServiceException
- if an error is encountered during
initializationpublic final void start()
XQServiceEx
start
in interface XQServiceEx
public final void stop()
XQServiceEx
stop
in interface XQServiceEx
public final void destroy()
XQService
destroy
in interface XQService
public final void service(XQServiceContext xqContext) throws XQServiceException
XQService
service
in interface XQService
xqContext
- an XQServiceContext
from which the service
can obtain the operating context (including the sent message)
XQServiceException
- if an error is encountered during
message processingpublic void doInit(SFCInitializationContext context) throws XQServiceException
doInit
in interface SFCService
XQServiceException
public void doStart() throws XQServiceException
doStart
in interface SFCService
XQServiceException
public void doStop() throws XQServiceException
doStop
in interface SFCService
XQServiceException
public void doDestroy() throws XQServiceException
doDestroy
in interface SFCService
XQServiceException
public abstract void doService(SFCServiceContext context, XQEnvelope envelope) throws XQServiceException
doService
in interface SFCService
XQServiceException
public java.lang.String getName()
SFCServiceDescriptor
getName
in interface SFCServiceDescriptor
public java.lang.String getDisplayName()
SFCServiceDescriptor
getDisplayName
in interface SFCServiceDescriptor
public VersionNumber getVersion()
SFCServiceDescriptor
getVersion
in interface SFCServiceDescriptor
public java.lang.String getCopyright()
SFCServiceDescriptor
getCopyright
in interface SFCServiceDescriptor
public void setInitializationContext(SFCInitializationContext initContext)
public void setServiceContextFactory(SFCServiceContextFactory contextFactory)
public void setContainerMetricsHandler(ContainerMetricsHandler metricsHandler)
public void setServiceMetricsHandler(ServiceMetricsHandler metricsHandler)
public void setNotificationsHandler(NotificationsHandler notificationsHandler)
public void setServiceDescriptor(SFCServiceDescriptor serviceDescriptor)
public void setDiagnosticContextFactory(com.sonicsw.esb.service.common.impl.SFCDiagnosticContextFactory diagnosticContextFactory)
public void setDefaultMetricsProvider(MetricsCapable defaultMetricsProvider)
public void setDefaultNotificationsProvider(NotificationsCapable defaultNotificationsProvider)
public void setMetricsBuilder(MetricsBuilder metricsBuilder)
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException
BeansException
public void setServiceDelegate(SFCService delegate)
public final void doNotCreateApplicationContexts()
|
Sonic ESB API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |