alma::demo::XmlComponentImpl::XmlComponentHelper::IFTranslator Class Reference

Inheritance diagram for alma::demo::XmlComponentImpl::XmlComponentHelper::IFTranslator:
Inheritance graph
[legend]
Collaboration diagram for alma::demo::XmlComponentImpl::XmlComponentHelper::IFTranslator:
Collaboration graph
[legend]

List of all members.

Public Member Functions

ComponentStates componentState ()
String name ()
XmlEntityStruct createObsProposal ()
int dumbMethod (String somevalue)
XmlEntityStruct[] getAllSchedBlocks ()
void addNewSchedBlocks (XmlEntityStruct[] newSchedBlocks)
XmlEntityStruct getBestSchedBlock ()
void xmlInOutMethod (XmlEntityStruct opsPropIn, XmlEntityStructHolder schedBlockOut)
ObsProjectTree getEntireTreeInAStruct ()
String sayHello ()
void exceptionMethod () throws XmlComponentErrorEx

Package Functions

 IFTranslator (XmlComponentJ componentImpl, XmlComponentOperations defaultTranslator, Logger logger)

Private Attributes

boolean m_useDefaultTranslator = true
XmlComponentJ m_componentImpl
XmlComponentOperations m_defaultTranslator
EntitySerializer m_entSer
Logger m_ifTransLogger

Detailed Description

Interface translator class that presents serialized XML toward the container, but presents the corresponding Java binding objects toward the component implementation.

XmlComponentHelper does not really need to provide such a translator class at all, since the container can do all necessary XML (de-)serializations to mediate between the CORBA interface XmlComponentOperations and XmlComponentJ transparently.

Nontheless we want to illustrate the use of the _getInterfaceTranslator method. Even if the container can perform the translation between the various XML method parameters and return types, we still might want to be in full control of this for selected component interface methods.

In the method implementations of IFTranslator, the private instance variable m_useDefaultTranslator controls whether the translation should be delegated to the container (represented by the m_defaultTranslator member object), or if it should be carried out by hand (using the methods marshalEntity and unmarshalEntity). For a real application, we would of course have more fine-grained control on the method level, and likely implement either automatic or manual parameter translation, but not both to choose from. This is done here only for demo purposes.


Constructor & Destructor Documentation

alma::demo::XmlComponentImpl::XmlComponentHelper::IFTranslator::IFTranslator ( XmlComponentJ  componentImpl,
XmlComponentOperations  defaultTranslator,
Logger  logger 
) [inline, package]

Member Function Documentation

void alma::demo::XmlComponentImpl::XmlComponentHelper::IFTranslator::addNewSchedBlocks ( XmlEntityStruct[]  newSchedBlocks  )  [inline]
ComponentStates alma::demo::XmlComponentImpl::XmlComponentHelper::IFTranslator::componentState (  )  [inline]
XmlEntityStruct alma::demo::XmlComponentImpl::XmlComponentHelper::IFTranslator::createObsProposal (  )  [inline]
int alma::demo::XmlComponentImpl::XmlComponentHelper::IFTranslator::dumbMethod ( String  somevalue  )  [inline]
void alma::demo::XmlComponentImpl::XmlComponentHelper::IFTranslator::exceptionMethod (  )  throws XmlComponentErrorEx [inline]
XmlEntityStruct [] alma::demo::XmlComponentImpl::XmlComponentHelper::IFTranslator::getAllSchedBlocks (  )  [inline]
XmlEntityStruct alma::demo::XmlComponentImpl::XmlComponentHelper::IFTranslator::getBestSchedBlock (  )  [inline]
ObsProjectTree alma::demo::XmlComponentImpl::XmlComponentHelper::IFTranslator::getEntireTreeInAStruct (  )  [inline]
String alma::demo::XmlComponentImpl::XmlComponentHelper::IFTranslator::name (  )  [inline]
String alma::demo::XmlComponentImpl::XmlComponentHelper::IFTranslator::sayHello (  )  [inline]
void alma::demo::XmlComponentImpl::XmlComponentHelper::IFTranslator::xmlInOutMethod ( XmlEntityStruct  opsPropIn,
XmlEntityStructHolder  schedBlockOut 
) [inline]

Member Data Documentation


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2