FileDocCategorySizeDatePackage
ConnectorConfigParserFactory.javaAPI DocGlassfish v2 API2985Fri May 04 22:34:26 BST 2007com.sun.enterprise.connectors.util

ConnectorConfigParserFactory

public class ConnectorConfigParserFactory extends Object
This is a factory class for the connector configuration parser classes.
author
Srikanth P

Fields Summary
Constructors Summary
Methods Summary
public static ConnectorConfigParsergetParser(java.lang.String type)
Returns a specific connector configuration parser class based on the type of configurations to parse.

param
type Parser class type.
return
parser class


        if(type == null) {
            return null;
        }
        if(type.equals(ConnectorConfigParser.AOR)) {
            return new AdminObjectConfigParserImpl();
        } else if(type.equals(ConnectorConfigParser.MCF)) {
            return new MCFConfigParserImpl();
        } else if(type.equals(ConnectorConfigParser.RA)) {
            return new ResourceAdapterConfigParserImpl();
        } else if(type.equals(ConnectorConfigParser.MSL)) {
            return new MessageListenerConfigParserImpl();
        } else {
            return null;
        }