FileDocCategorySizeDatePackage
ConnectorAdminServicesFactory.javaAPI DocGlassfish v2 API3143Fri May 04 22:34:24 BST 2007com.sun.enterprise.connectors

ConnectorAdminServicesFactory

public class ConnectorAdminServicesFactory extends Object
This is a factory class for the connector admin services classes.
author
Srikanth P

Fields Summary
Constructors Summary
Methods Summary
public static ConnectorAdminServicegetService(java.lang.String type)
Returns a specific connector admin service implemntation class based on the type of service.

param
type Service type.
return
COnnectorAdminService implementation class


        if(type == null) {
            return null;
        }
        if(type.equals(ConnectorAdminService.CCP)) {
            return new ConnectorConnectionPoolAdminServiceImpl();
        } else if(type.equals(ConnectorAdminService.CR)) {
            return new ConnectorResourceAdminServiceImpl();
        } else if(type.equals(ConnectorAdminService.AOR)) {
            return new ConnectorAdminObjectAdminServiceImpl();
        } else if(type.equals(ConnectorAdminService.SEC)) {
            return new ConnectorSecurityAdminServiceImpl();
        } else if(type.equals(ConnectorAdminService.RA)) {
            return new ResourceAdapterAdminServiceImpl();
        } else {
            return null;
        }