PlainConfigurator.java :  » Net » JGroups-2.4.1-sp3 » org » jgroups » conf » Java Open Source

Java Open Source » Net » JGroups 2.4.1 sp3 
JGroups 2.4.1 sp3 » org » jgroups » conf » PlainConfigurator.java
// $Id: PlainConfigurator.java,v 1.2 2004/09/23 16:29:14 belaban Exp $

package org.jgroups.conf;

/**
 * A ProtocolStackConfigurator for the old style properties.
 * <BR>
 * Old style properties are referred to as the property string used by channel earlier
 * they look like this PROTOCOL(param=value;param=value):PROTOCOL:PROTOCOL<BR>
 * All it does is that it holds the string, it currently doesn't parse it at all.
 *
 * @author Filip Hanik (<a href="mailto:filip@filip.net">filip@filip.net)
 * @version 1.0
 */

public class PlainConfigurator implements ProtocolStackConfigurator
{
    private final String mProperties;
    
    /**
     * Instantiates a PlainConfigurator with old style properties
     */
    public PlainConfigurator(String properties)
    {
        mProperties = properties;
    }
    
    /**
     * returns the old style protocol string
     */
    public String getProtocolStackString()
    {
        return mProperties;
    }
    
    /**
     * Throws a UnsupportedOperationException all the time. No parsing implemented.
     */
    public ProtocolData[] getProtocolStack()
    {
        /**todo: Implement this org.jgroups.conf.ProtocolStackConfigurator method*/
        throw new java.lang.UnsupportedOperationException("Method getProtocolStack() not yet implemented.");
    }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.