public class XmlComponentImpl extends ComponentImplBase
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).
m_containerServices, m_instanceName, m_logger| Constructor and Description |
|---|
XmlComponentImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
activateOffshoot() |
void |
addNewSchedBlocks(SchedBlock[] newSchedBlocks) |
ObsProposal |
createObsProposal()
from IDL:
ObsProposal createObsProposal(); |
void |
deactivateOffshoot() |
int |
dumbMethod(java.lang.String somevalue)
from IDL:
long dumbMethod(in string somevalue); |
void |
exceptionMethod()
At the CORBA interface level, we must use the CORBA-exceptions.
|
SchedBlock[] |
getAllSchedBlocks()
from IDL:
SchedBlockSeq getAllSchedBlocks(); |
SchedBlock |
getBestSchedBlock() |
ObsProjectTreeJ |
getEntireTreeInAStruct()
Returns the
ObsProposal from createObsProposal()
and the SchedBlocks from getAllSchedBlocks() together in a struct. |
XmlOffshootJ |
getOffshoot() |
void |
initialize(ContainerServices contServices)
Subclass must call
super.initialize(containerServices)
unless it overrides as well all other methods which access the member vars of this class. |
void |
internalExceptionMethod()
Inside the Java implementation, we can throw around
native Java exceptions generated from the error specifications.
|
java.lang.String |
sayHello() |
void |
xmlInOutMethod(ObsProposal opsPropIn,
SchedBlockHolder schedBlockOut)
from IDL:
void xmlInOutMethod(in ObsProposal opsPropIn, out SchedBlock schedBlockOut); |
aboutToAbort, cleanUp, componentState, execute, namepublic void initialize(ContainerServices contServices) throws ComponentLifecycleException
ComponentImplBasesuper.initialize(containerServices)
unless it overrides as well all other methods which access the member vars of this class.initialize in interface ComponentLifecycleinitialize in class ComponentImplBasecontServices - callback object for services provided by the containerComponentLifecycleExceptionComponentLifecycle.initialize(ContainerServices)public int dumbMethod(java.lang.String somevalue)
long dumbMethod(in string somevalue);alma.demo.XmlComponentJ#dumbMethod(java.lang.String)public ObsProposal createObsProposal()
ObsProposal createObsProposal();alma.demo.XmlComponentJ#createObsProposal()public SchedBlock getBestSchedBlock()
alma.demo.XmlComponentJ#getBestSchedBlock()public SchedBlock[] getAllSchedBlocks()
SchedBlockSeq getAllSchedBlocks();alma.demo.XmlComponentJ#getAllSchedBlocks()public void addNewSchedBlocks(SchedBlock[] newSchedBlocks)
alma.demo.XmlComponentJ#addNewSchedBlocks(alma.xmljbind.test.schedblock.SchedBlock[])public void xmlInOutMethod(ObsProposal opsPropIn,
SchedBlockHolder schedBlockOut)
void xmlInOutMethod(in ObsProposal opsPropIn, out SchedBlock schedBlockOut);alma.demo.XmlComponentJ#xmlInOutMethod(alma.xmljbind.test.obsproposal.ObsProposal,
alma.demo.SchedBlockHolder)public ObsProjectTreeJ getEntireTreeInAStruct()
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.alma.demo.XmlComponentJ#getEntireTreeInAStruct()public java.lang.String sayHello()
alma.demo.XmlComponentJ#sayHello()public void exceptionMethod()
throws XmlComponentErrorEx
XmlComponentErrorEx - with an alma.ACSErr.ErrorTrace inside;
the ErrorTrace will contain a NullPointerException.public void internalExceptionMethod()
throws AcsJXmlComponentErrorEx
AcsJXmlComponentErrorEx - because that one is easier to work with than the corresponding
XmlComponentErrorEx, and this method is not part of the (CORBA) component interface.public XmlOffshootJ getOffshoot()
public void deactivateOffshoot()
public void activateOffshoot()