Public Member Functions | |
void | initialize (ContainerServices contServices) throws ComponentLifecycleException |
int | dumbMethod (String somevalue) |
ObsProposal | createObsProposal () |
SchedBlock | getBestSchedBlock () |
SchedBlock[] | getAllSchedBlocks () |
void | addNewSchedBlocks (SchedBlock[] newSchedBlocks) |
void | xmlInOutMethod (ObsProposal opsPropIn, SchedBlockHolder schedBlockOut) |
ObsProjectTreeJ | getEntireTreeInAStruct () |
String | sayHello () |
void | exceptionMethod () throws XmlComponentErrorEx |
void | internalExceptionMethod () throws AcsJXmlComponentErrorEx |
XmlOffshootJ | getOffshoot () |
void | deactivateOffshoot () |
void | activateOffshoot () |
A test component that implements the XmlComponentImpl
interface from demo.idl
.
The implemented functional interface, XmlComponentJ
, uses Castor binding classes, where the IDL (and XmlComponentOperations
) use serialized XML strings inside the XmlEntityStruct
.
In addition to methods for testing the transparent-xml feature, there is the method sayHello
, which is meant to internally contact another component (HelloDemo
).
void alma.demo.XmlComponentImpl.XmlComponentImpl.activateOffshoot | ( | ) |
void alma.demo.XmlComponentImpl.XmlComponentImpl.addNewSchedBlocks | ( | SchedBlock[] | newSchedBlocks | ) |
References alma.acs.component.ComponentImplBase.m_logger.
ObsProposal alma.demo.XmlComponentImpl.XmlComponentImpl.createObsProposal | ( | ) |
from IDL: ObsProposal createObsProposal();
References alma.acs.container.ContainerServices.assignUniqueEntityId(), alma.acs.component.ComponentImplBase.m_containerServices, and alma.acs.component.ComponentImplBase.m_logger.
Referenced by alma.demo.XmlComponentImpl.XmlComponentImpl.getEntireTreeInAStruct().
void alma.demo.XmlComponentImpl.XmlComponentImpl.deactivateOffshoot | ( | ) |
int alma.demo.XmlComponentImpl.XmlComponentImpl.dumbMethod | ( | String | somevalue | ) |
from IDL: long dumbMethod(in string somevalue);
void alma.demo.XmlComponentImpl.XmlComponentImpl.exceptionMethod | ( | ) | throws XmlComponentErrorEx |
At the CORBA interface level, we must use the CORBA-exceptions.
XmlComponentErrorEx | with an alma.ACSErr.ErrorTrace inside; the ErrorTrace will contain a NullPointerException. |
References alma.demo.XmlComponentImpl.XmlComponentImpl.internalExceptionMethod(), and alma.acs.component.ComponentImplBase.m_logger.
SchedBlock [] alma.demo.XmlComponentImpl.XmlComponentImpl.getAllSchedBlocks | ( | ) |
from IDL: SchedBlockSeq getAllSchedBlocks();
Referenced by alma.demo.XmlComponentImpl.XmlComponentImpl.getEntireTreeInAStruct().
SchedBlock alma.demo.XmlComponentImpl.XmlComponentImpl.getBestSchedBlock | ( | ) |
Referenced by alma.demo.XmlComponentImpl.XmlComponentImpl.xmlInOutMethod().
ObsProjectTreeJ alma.demo.XmlComponentImpl.XmlComponentImpl.getEntireTreeInAStruct | ( | ) |
Returns the ObsProposal
from createObsProposal and the SchedBlock
s from getAllSchedBlocks together in a struct.
Illustrates and tests the usage of xml entity classes inside IDL structs, or rather their usage as Java class members from an implementation point of view.
References alma.demo.XmlComponentImpl.XmlComponentImpl.createObsProposal(), and alma.demo.XmlComponentImpl.XmlComponentImpl.getAllSchedBlocks().
XmlOffshootJ alma.demo.XmlComponentImpl.XmlComponentImpl.getOffshoot | ( | ) |
void alma.demo.XmlComponentImpl.XmlComponentImpl.initialize | ( | ContainerServices | contServices | ) | throws ComponentLifecycleException |
void alma.demo.XmlComponentImpl.XmlComponentImpl.internalExceptionMethod | ( | ) | throws AcsJXmlComponentErrorEx |
Inside the Java implementation, we can throw around native Java exceptions generated from the error specifications.
AcsJXmlComponentErrorEx | because that one is easier to work with than the corresponding XmlComponentErrorEx, and this method is not part of the (CORBA) component interface. |
Referenced by alma.demo.XmlComponentImpl.XmlComponentImpl.exceptionMethod().
String alma.demo.XmlComponentImpl.XmlComponentImpl.sayHello | ( | ) |
References alma.acs.container.ContainerServices.getComponent(), alma.acs.component.ComponentImplBase.m_containerServices, alma.acs.component.ComponentImplBase.m_logger, and alma.acs.container.ContainerServices.releaseComponent().
void alma.demo.XmlComponentImpl.XmlComponentImpl.xmlInOutMethod | ( | ObsProposal | opsPropIn, | |
SchedBlockHolder | schedBlockOut | |||
) |
from IDL: void xmlInOutMethod(in ObsProposal opsPropIn, out SchedBlock schedBlockOut);
References alma.demo.XmlComponentImpl.XmlComponentImpl.getBestSchedBlock().