scs.core
Class IMetaInterfaceServant

java.lang.Object
  extended by org.omg.PortableServer.Servant
      extended by scs.core.IMetaInterfacePOA
          extended by scs.core.IMetaInterfaceServant
All Implemented Interfaces:
InvokeHandler, IMetaInterfaceOperations

public class IMetaInterfaceServant
extends IMetaInterfacePOA

This class is the basic implementation of the IDL interface IMetaInterface. The IMetaInterface interface provides access to the component's metadata, acting as an introspection facet.


Field Summary
protected  ComponentContext myComponent
          Reference to the context of this facet, i.e., the local representation of its component.
 
Constructor Summary
IMetaInterfaceServant(ComponentContext myComponent)
          Primary constructor.
 
Method Summary
 Object _get_component()
          Provides the reference to the most basic facet of the component, IComponent.
 FacetDescription[] getFacets()
          Provides CORBA references and metadata of all of the component's facets.
 FacetDescription[] getFacetsByName(String[] names)
          Provides CORBA references and metadata of some of the component's facets, specified by their names.
 ReceptacleDescription[] getReceptacles()
          Provides metadata of all of the component's receptacles.
 ReceptacleDescription[] getReceptaclesByName(String[] names)
          Provides metadata of some of the component's receptacles, specified by their names.
 
Methods inherited from class scs.core.IMetaInterfacePOA
_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

IMetaInterfaceServant

public IMetaInterfaceServant(ComponentContext myComponent)
Primary constructor.

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

getFacets

public FacetDescription[] getFacets()
Provides CORBA references and metadata of all of the component's facets.

Returns:
An array with the facets metadata.
See Also:
IMetaInterfaceOperations.getFacets()

getFacetsByName

public FacetDescription[] getFacetsByName(String[] names)
                                   throws InvalidName
Provides CORBA references and metadata of some of the component's facets, specified by their names.

Parameters:
names - The names of the desired facets.
Returns:
An array with the specified facets metadata.
Throws:
InvalidName - If none of the specified names was found.
See Also:
IMetaInterfaceOperations.getFacetsByName(String[] names)

getReceptacles

public ReceptacleDescription[] getReceptacles()
Provides metadata of all of the component's receptacles.

Returns:
An array with the receptacles metadata.
See Also:
IMetaInterfaceOperations.getReceptacles()

getReceptaclesByName

public ReceptacleDescription[] getReceptaclesByName(String[] names)
                                             throws InvalidName
Provides metadata of some of the component's receptacles, specified by their names.

Parameters:
names - The names of the desired receptacles.
Returns:
An array with the specified receptacles metadata.
Throws:
InvalidName - If none of the specified names was found.
See Also:
IMetaInterfaceOperations.getReceptaclesByName(String[] names)

_get_component

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



Copyright © 2014. All Rights Reserved.