KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jgroups > conf > PlainConfigurator


1 // $Id: PlainConfigurator.java,v 1.2 2004/09/23 16:29:14 belaban Exp $
2

3 package org.jgroups.conf;
4
5 /**
6  * A ProtocolStackConfigurator for the old style properties.
7  * <BR>
8  * Old style properties are referred to as the property string used by channel earlier
9  * they look like this PROTOCOL(param=value;param=value):PROTOCOL:PROTOCOL<BR>
10  * All it does is that it holds the string, it currently doesn't parse it at all.
11  *
12  * @author Filip Hanik (<a HREF="mailto:filip@filip.net">filip@filip.net)
13  * @version 1.0
14  */

15
16 public class PlainConfigurator implements ProtocolStackConfigurator
17 {
18     private final String JavaDoc mProperties;
19     
20     /**
21      * Instantiates a PlainConfigurator with old style properties
22      */

23     public PlainConfigurator(String JavaDoc properties)
24     {
25         mProperties = properties;
26     }
27     
28     /**
29      * returns the old style protocol string
30      */

31     public String JavaDoc getProtocolStackString()
32     {
33         return mProperties;
34     }
35     
36     /**
37      * Throws a UnsupportedOperationException all the time. No parsing implemented.
38      */

39     public ProtocolData[] getProtocolStack()
40     {
41         /**todo: Implement this org.jgroups.conf.ProtocolStackConfigurator method*/
42         throw new java.lang.UnsupportedOperationException JavaDoc("Method getProtocolStack() not yet implemented.");
43     }
44 }
45
Popular Tags