Sonic ESB API

com.sonicsw.xq.service.xform
Class TransformationService

java.lang.Object
  extended by com.sonicsw.xq.service.xform.TransformationService
All Implemented Interfaces:
XQService

public class TransformationService
extends java.lang.Object
implements XQService


Constructor Summary
TransformationService()
          Default contructor for the TransformationService.
 
Method Summary
 void destroy()
          Destroys the TransformationService.
 void init(XQInitContext initialContext)
          Initializes the TransformationService with the init params from its configuration.
 void service(XQServiceContext ctx)
          Provides the Transformation service.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransformationService

public TransformationService()
Default contructor for the TransformationService.

Method Detail

init

public void init(XQInitContext initialContext)
Initializes the TransformationService with the init params from its configuration. Creates an object pool of "Xformer" objects and sets the init information, with the pool, so the pool can correctly initialize every new "Xformer" object that it creates.

Specified by:
init in interface XQService
Parameters:
initialContext - The init service context (provides logging and parameters access).

destroy

public void destroy()
Destroys the TransformationService. Relases resources and sets all references to null.

Specified by:
destroy in interface XQService

service

public void service(XQServiceContext ctx)
             throws XQServiceException
Provides the Transformation service. This method gets called every time a message is received at the entry-endpoint configured for this service.

Specified by:
service in interface XQService
Parameters:
ctx - The ServiceContext object which contains the incoming message within an envelope in its INBOX. If this method is successful, a clone of the original message with appropriate transformation applied on it, will be placed in the OUTBOX of the ServiceContext. In case of a failure, the service throws an Exception and the message gets sent to the RejectedMessageEndpoint, configured for this service.
Throws:
XQServiceException - In the event of some failure.

Sonic ESB API

Copyright © 2001-2013 Aurea, Inc. All Rights Reserved.
HTML formatted on 29-April-2013.