

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 |
Private Attributes | |
| ArrayList< SchedBlock > | m_schedBlockList |
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::addNewSchedBlocks | ( | SchedBlock[] | newSchedBlocks | ) | [inline] |
References alma::acs::component::ComponentImplBase::m_logger, and m_schedBlockList.
| ObsProposal alma::demo::XmlComponentImpl::XmlComponentImpl::createObsProposal | ( | ) | [inline] |
from IDL: ObsProposal createObsProposal();
Implements alma::demo::XmlComponentJ.
References alma::acs::container::ContainerServices::assignUniqueEntityId(), alma::acs::component::ComponentImplBase::m_containerServices, and alma::acs::component::ComponentImplBase::m_logger.
Referenced by getEntireTreeInAStruct().
| int alma::demo::XmlComponentImpl::XmlComponentImpl::dumbMethod | ( | String | somevalue | ) | [inline] |
from IDL: long dumbMethod(in string somevalue);
Implements alma::demo::XmlComponentJ.
| void alma::demo::XmlComponentImpl::XmlComponentImpl::exceptionMethod | ( | ) | throws XmlComponentErrorEx [inline] |
At the CORBA interface level, we must use the CORBA-exceptions.
| XmlComponentErrorEx | with an alma.ACSErr.ErrorTrace inside; the ErrorTrace will contain a NullPointerException. |
Implements alma::demo::XmlComponentJ.
References internalExceptionMethod(), alma::acs::exceptions::AcsJException::log(), alma::acs::component::ComponentImplBase::m_logger, and alma::JContExmplErrTypeTest::wrappers::AcsJXmlComponentErrorEx::toXmlComponentErrorEx().
| SchedBlock [] alma::demo::XmlComponentImpl::XmlComponentImpl::getAllSchedBlocks | ( | ) | [inline] |
from IDL: SchedBlockSeq getAllSchedBlocks();
Implements alma::demo::XmlComponentJ.
References m_schedBlockList.
Referenced by getEntireTreeInAStruct().
| SchedBlock alma::demo::XmlComponentImpl::XmlComponentImpl::getBestSchedBlock | ( | ) | [inline] |
| ObsProjectTreeJ alma::demo::XmlComponentImpl::XmlComponentImpl::getEntireTreeInAStruct | ( | ) | [inline] |
Returns the ObsProposal from createObsProposal and the SchedBlocks 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.
Implements alma::demo::XmlComponentJ.
References createObsProposal(), getAllSchedBlocks(), and alma::demo::ObsProjectTreeJ::prop.
| void alma::demo::XmlComponentImpl::XmlComponentImpl::initialize | ( | ContainerServices | contServices | ) | throws ComponentLifecycleException [inline] |
| void alma::demo::XmlComponentImpl::XmlComponentImpl::internalExceptionMethod | ( | ) | throws AcsJXmlComponentErrorEx [inline] |
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 exceptionMethod().
| String alma::demo::XmlComponentImpl::XmlComponentImpl::sayHello | ( | ) | [inline] |
Implements alma::demo::XmlComponentJ.
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 | |||
| ) | [inline] |
from IDL: void xmlInOutMethod(in ObsProposal opsPropIn, out SchedBlock schedBlockOut);
References getBestSchedBlock(), and alma::demo::SchedBlockHolder::value.
ArrayList<SchedBlock> alma::demo::XmlComponentImpl::XmlComponentImpl::m_schedBlockList [private] |
Referenced by addNewSchedBlocks(), getAllSchedBlocks(), getBestSchedBlock(), and initialize().
1.6.2