Public Member Functions

alma.demo.XmlComponentImpl.XmlComponentImpl Class Reference

Inheritance diagram for alma.demo.XmlComponentImpl.XmlComponentImpl:
alma.acs.component.ComponentImplBase alma.acs.component.ComponentLifecycle

List of all members.

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 ()

Detailed Description

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).

Author:
hsommer Nov 27, 2002 8:22:17 PM

Member Function Documentation

void alma.demo.XmlComponentImpl.XmlComponentImpl.activateOffshoot (  ) 
void alma.demo.XmlComponentImpl.XmlComponentImpl.addNewSchedBlocks ( SchedBlock[]  newSchedBlocks  ) 
See also:
alma.demo.XmlComponentJ.addNewSchedBlocks(alma.xmljbind.test.schedblock.SchedBlock[])

References alma.acs.component.ComponentImplBase.m_logger.

ObsProposal alma.demo.XmlComponentImpl.XmlComponentImpl.createObsProposal (  ) 
void alma.demo.XmlComponentImpl.XmlComponentImpl.deactivateOffshoot (  ) 
int alma.demo.XmlComponentImpl.XmlComponentImpl.dumbMethod ( String  somevalue  ) 

from IDL: long dumbMethod(in string somevalue);

See also:
alma.demo.XmlComponentJ.dumbMethod(java.lang.String)
void alma.demo.XmlComponentImpl.XmlComponentImpl.exceptionMethod (  )  throws XmlComponentErrorEx

At the CORBA interface level, we must use the CORBA-exceptions.

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();

See also:
alma.demo.XmlComponentJ.getAllSchedBlocks()

Referenced by alma.demo.XmlComponentImpl.XmlComponentImpl.getEntireTreeInAStruct().

SchedBlock alma.demo.XmlComponentImpl.XmlComponentImpl.getBestSchedBlock (  ) 
See also:
alma.demo.XmlComponentJ.getBestSchedBlock()

Referenced by alma.demo.XmlComponentImpl.XmlComponentImpl.xmlInOutMethod().

ObsProjectTreeJ alma.demo.XmlComponentImpl.XmlComponentImpl.getEntireTreeInAStruct (  ) 

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.

See also:
alma.demo.XmlComponentJ.getEntireTreeInAStruct()

References alma.demo.XmlComponentImpl.XmlComponentImpl.createObsProposal(), and alma.demo.XmlComponentImpl.XmlComponentImpl.getAllSchedBlocks().

XmlOffshootJ alma.demo.XmlComponentImpl.XmlComponentImpl.getOffshoot (  ) 
void alma.demo.XmlComponentImpl.XmlComponentImpl.internalExceptionMethod (  )  throws AcsJXmlComponentErrorEx

Inside the Java implementation, we can throw around native Java exceptions generated from the error specifications.

Exceptions:
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().

void alma.demo.XmlComponentImpl.XmlComponentImpl.xmlInOutMethod ( ObsProposal  opsPropIn,
SchedBlockHolder  schedBlockOut 
)

from IDL: void xmlInOutMethod(in ObsProposal opsPropIn, out SchedBlock schedBlockOut);

See also:
alma.demo.XmlComponentJ.xmlInOutMethod(alma.xmljbind.test.obsproposal.ObsProposal, alma.demo.SchedBlockHolder)

References alma.demo.XmlComponentImpl.XmlComponentImpl.getBestSchedBlock().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties