KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jacorb > orb > DefaultProfileSelector


1 package org.jacorb.orb;
2
3
4 /*
5  * JacORB - a free Java ORB
6  *
7  * Copyright (C) 1997-2004 Gerald Brose.
8  *
9  * This library is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU Library General Public
11  * License as published by the Free Software Foundation; either
12  * version 2 of the License, or (at your option) any later version.
13  *
14  * This library is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  * Library General Public License for more details.
18  *
19  * You should have received a copy of the GNU Library General Public
20  * License along with this library; if not, write to the Free
21  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22  */

23
24 import java.util.*;
25 import org.omg.ETF.Profile;
26 import org.jacorb.orb.giop.ClientConnectionManager;
27
28 /**
29  * @author <a HREF="mailto:spiegel@gnu.org">Andre Spiegel</a>
30  * @version $Id: DefaultProfileSelector.java,v 1.4 2004/05/06 12:40:00 nicolas Exp $
31  */

32 public class DefaultProfileSelector implements ProfileSelector
33 {
34
35     public Profile selectProfile (List profiles, ClientConnectionManager ccm)
36     {
37         if (profiles.size() > 0)
38             return (Profile)profiles.get(0);
39         else
40             return null;
41     }
42
43 }
44
Popular Tags