summaryrefslogtreecommitdiff
path: root/modules/CIAO/ciao/Servants/CIAO_Port_Activator.idl
blob: be3148ed0ae23131e3b02faf210d0e6268d7bda3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/**
 * @file CIAO_Port_Activator.idl
 * @author Wiliam R. Otte <wotte@dre.vanderbilt.edu
 * $Id$
 * Local interface describing servant activators for component ports.
 */

#ifndef CIAO_PORT_ACTIVATOR_IDL_
#define CIAO_PORT_ACTIVATOR_IDL_

#include "tao/PortableServer/ServantActivator.pidl"

module CIAO
{
  module Port_Activator_Types
  {
    enum Type
    {
      FACET,
      SINK
    };
  };

  local interface Port_Activator
  {
    /// OID of port this activator encapsulates
    attribute string oid;

    /// name of the port
    readonly attribute string name;

    PortableServer::Servant activate (in PortableServer::ObjectId oid);

    void deactivate (in PortableServer::Servant servant);
  };
};

#endif