KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > corba > runtime > POAConfigurationImpl


1 // ====================================================================
2
//
3
// ECM: The Extensible Container Model
4
// Copyright (C) 2004 THALES
5
// Contact: openccm-ecm@objectweb.org
6
//
7
// This library is free software; you can redistribute it and/or
8
// modify it under the terms of the GNU Lesser General Public
9
// License as published by the Free Software Foundation; either
10
// version 2.1 of the License, or any later version.
11
//
12
// This library is distributed in the hope that it will be useful,
13
// but WITHOUT ANY WARRANTY; without even the implied warranty of
14
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
// Lesser General Public License for more details.
16
//
17
// You should have received a copy of the GNU Lesser General Public
18
// License along with this library; if not, write to the Free Software
19
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
20
// USA
21
//
22
// Initial developer(s): Mathieu Vadet.
23
// Initial Funding: IST COACH European project (IST-2001-34445)
24
// http://www.ist-coach.org
25
//
26
// ====================================================================
27

28
29
30 package org.objectweb.corba.runtime;
31
32 /**
33  ** <p>Default implementation of the <tt>ORBConfiguration</tt> interface. Null values are permitted for
34  ** the constructor parameters.</p>
35  **/

36 public class POAConfigurationImpl
37 extends org.omg.CORBA.LocalObject JavaDoc
38 implements POAConfiguration
39 {
40     // poa configuration
41
private String JavaDoc _name;
42     private org.omg.CORBA.Policy JavaDoc[] _policies;
43     private ORBService _orb_service;
44
45     // default constructor
46
public
47     POAConfigurationImpl(String JavaDoc name,
48                          org.omg.CORBA.Policy JavaDoc[] pols,
49                          ORBService orbs)
50     {
51         // poa configuration
52
_name = name;
53         _orb_service = orbs;
54
55         if (pols==null) {
56             _policies = new org.omg.CORBA.Policy JavaDoc[0];
57         } else {
58             _policies = pols;
59         }
60     }
61
62     //
63
// IDL:objectweb.org/corba/runtime/POAConfiguration:1.0
64
//
65

66     final public String JavaDoc
67     name()
68     {
69         return _name;
70     }
71
72     final public org.omg.CORBA.Policy JavaDoc[]
73     policies()
74     {
75         return _policies;
76     }
77
78     final public ORBService
79     orb_service()
80     {
81         return _orb_service;
82     }
83 }
84
Popular Tags