01: // $Id: PlainConfigurator.java,v 1.2 2004/09/23 16:29:14 belaban Exp $
02:
03: package org.jgroups.conf;
04:
05: /**
06: * A ProtocolStackConfigurator for the old style properties.
07: * <BR>
08: * Old style properties are referred to as the property string used by channel earlier
09: * 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: private final String mProperties;
18:
19: /**
20: * Instantiates a PlainConfigurator with old style properties
21: */
22: public PlainConfigurator(String properties) {
23: mProperties = properties;
24: }
25:
26: /**
27: * returns the old style protocol string
28: */
29: public String getProtocolStackString() {
30: return mProperties;
31: }
32:
33: /**
34: * Throws a UnsupportedOperationException all the time. No parsing implemented.
35: */
36: public ProtocolData[] getProtocolStack() {
37: /**todo: Implement this org.jgroups.conf.ProtocolStackConfigurator method*/
38: throw new java.lang.UnsupportedOperationException(
39: "Method getProtocolStack() not yet implemented.");
40: }
41: }
|