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 |
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.
|
|
|
|
|
Implements alma::ACS::ACSComponentOperations.
|
|
Implements alma::demo::XmlComponentOperations.
|
|
|
|
Implements alma::demo::XmlComponentOperations.
|
|
Implements alma::demo::XmlComponentOperations.
|
|
Implements alma::demo::XmlComponentOperations.
|
|
Implements alma::demo::XmlComponentOperations.
|
|
Implements alma::ACS::ACSComponentOperations.
|
|
Implements alma::demo::XmlComponentOperations.
|
|
|
|
|
|
|
|
|
|
|
|
|