Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejava
titleJava Server Class Definition
//Replace package alma.<Module>.<Interface>Impl; //for:
package alma.<PackageChosenForComponentHelper>;


//Replace import alma.Observatory.SchedulingImpl.SchedulingImpl; //for:
import alma.<PackageChosenForComponentImpl>.<ClassNameForComponentImpl>;


//Replace return new SchedulingImpl(); // for
return new <ClassNameForComponentImpl>();

...

Code Block
languagejava
titleJava Component Interaction
//Shared
import alma.<Module>.<Interface>;
import alma.<Module>.<Interface>Helper;


//By Name
<Interface> comp = <Interface>Helper.narrow(this.m_containerServices.getComponent("<Name>"));

//By Interface. Must be at least one component configured as default!
<Interface> comp = <Interface>Helper.narrow(this.m_containerServices.getDefaultComponent("IDL:alma/<Module>/<Interface>:1.0"));

//Release Components
m_containerServies.releaseComponent(comp.name());

...