scs.core
Class IComponentServant

java.lang.Object
  extended by org.omg.PortableServer.Servant
      extended by scs.core.IComponentPOA
          extended by scs.core.IComponentServant
All Implemented Interfaces:
InvokeHandler, IComponentOperations

public class IComponentServant
extends IComponentPOA

This class is the basic implementation of the IDL interface IComponent. The IComponent interface is the CORBA representation of a SCS component.


Field Summary
protected  ComponentContext myComponent
          Reference to the context of this facet, i.e., the local representation of its component.
 
Constructor Summary
IComponentServant(ComponentContext myComponent)
          Primary constructor.
 
Method Summary
 Object _get_component()
          Provides the reference to the most basic facet of the component, IComponent.
 ComponentId getComponentId()
          Provides the component's ComponentId.
 Object getFacet(String facet_interface)
          Provides the CORBA reference to one of the component's facets, by its interface.
 Object getFacetByName(String facetName)
          Provides the CORBA reference to one of the component's facets, by its name.
 void shutdown()
          Empty implementation.
 void startup()
          Empty implementation.
 
Methods inherited from class scs.core.IComponentPOA
_all_interfaces, _invoke, _this, _this
 
Methods inherited from class org.omg.PortableServer.Servant
_default_POA, _get_delegate, _get_interface_def, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myComponent

protected ComponentContext myComponent
Reference to the context of this facet, i.e., the local representation of its component.

Constructor Detail

IComponentServant

public IComponentServant(ComponentContext myComponent)
Primary constructor.

Parameters:
myComponent - The component that owns this facet instance.
Method Detail

getFacet

public Object getFacet(String facet_interface)
Provides the CORBA reference to one of the component's facets, by its interface. Since there can be more than one facet with the same interface, there's no guarantee on which one of these will be returned.

Parameters:
facet_interface - The facet interface.
Returns:
The CORBA object that represents the facet. If there's more than one facet with the specified interface, any one of them may be returned. If there's no facet with the specified interface, null is returned.
See Also:
IComponentOperations.getFacet(java.lang.String)

getFacetByName

public Object getFacetByName(String facetName)
Provides the CORBA reference to one of the component's facets, by its name. There cannot be more than one facet with the same name, so there's only one possible return value.

Parameters:
facetName - The facet name.
Returns:
The CORBA object that represents the facet. If there's no facet with the specified interface, null is returned.
See Also:
IComponentOperations.getFacetByName(java.lang.String)

startup

public void startup()
             throws StartupFailed
Empty implementation. This method should be overridden by the user if component initialization is required.

Throws:
StartupFailed
See Also:
IComponentOperations.startup()

shutdown

public void shutdown()
              throws ShutdownFailed
Empty implementation. This method should be overridden by the user if component finalization is required.

Throws:
ShutdownFailed
See Also:
IComponentOperations.shutdown()

getComponentId

public ComponentId getComponentId()
Provides the component's ComponentId. ComponentId's aren't instance identifiers; they specify a component's name, version and platform specification.

Returns:
The ComponentId.

_get_component

public Object _get_component()
Provides the reference to the most basic facet of the component, IComponent.



Copyright © 2014. All Rights Reserved.