summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/orbsvcs/LifeCycleService.idl
blob: e750cfd7b425c72b261e3d788f6e6fd0506f740c (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
// $Id$

// ============================================================================
//
// = FILENAME
//    LifeCycleService.idl
//
// = DESCRIPTION
//    A generic creation service named lifecycle service using 
//    the GenericFactory interface of the LifeCycle Service specification.
//
// = AUTHOR
//    Michael Kircher (mk1@cs.wustl.edu)
//
// ============================================================================

#include "CosLifeCycle.idl"

module LifeCycleService
{
  interface Life_Cycle_Service : CosLifeCycle::GenericFactory
    {
      // = TITLE 
      //   Wrapper for the CosLifeCycle GenericFactory
      //
      // = inherits: 
      //    boolean supports(in Key k);
      //    Object create_object(in Key k, in Criteria the_criteria)
      //          raises (NoFactory, InvalidCriteria, CannotMeetCriteria);

      void register_factory (in string name, 
			     in string location,
			     in string description,
			     in Object object);
      // provide an method for registering factories with their properties
    };

  interface Criteria_Evaluator
    {
      // = TITLE
      //   Criteria Evaluator
      //
      // = DESCRIPTION
      //   Interface description for an evaluator of CosLifeCycle
      //   Criterias. It is mainly a wrapper, which should make
      //   access easier.
      //
      typedef sequence <CosLifeCycle::NameValuePair> SeqNamedValuePair;

      typedef CosLifeCycle::Criteria Criteria;

      exception NotAvailable { string reason; };
      // raised if the questioned configuration is not available

      SeqNamedValuePair getInitialization ();
      // get the initialization 

      string getFilter ();
      // get a filter string 

      SeqNamedValuePair getLogicalLocation ();
      // get the logical location
      
      string getPreferences ();
      // get the preferences, not implemented

      void setCriteria (in Criteria criteria);
      // set the Criteria which is searched for keywords
    };
};