1 2 24 25 package com.sun.enterprise.connectors; 26 27 31 32 public class ConnectorAdminServicesFactory { 33 34 35 42 43 public static ConnectorAdminService getService(String type) { 44 45 if(type == null) { 46 return null; 47 } 48 if(type.equals(ConnectorAdminService.CCP)) { 49 return new ConnectorConnectionPoolAdminServiceImpl(); 50 } else if(type.equals(ConnectorAdminService.CR)) { 51 return new ConnectorResourceAdminServiceImpl(); 52 } else if(type.equals(ConnectorAdminService.AOR)) { 53 return new ConnectorAdminObjectAdminServiceImpl(); 54 } else if(type.equals(ConnectorAdminService.SEC)) { 55 return new ConnectorSecurityAdminServiceImpl(); 56 } else if(type.equals(ConnectorAdminService.RA)) { 57 return new ResourceAdapterAdminServiceImpl(); 58 } else { 59 return null; 60 } 61 } 62 } 63 | Popular Tags |