1 23 24 29 30 package com.sun.enterprise.security.factory; 31 32 36 public class FactoryForSecurityManagerFactoryImpl 37 implements FactoryForSecurityManagerFactory { 38 39 private static FactoryForSecurityManagerFactory _theFactory; 40 private static String WEB = "web"; 41 private static String EJB = "ejb"; 42 43 44 private FactoryForSecurityManagerFactoryImpl() { 45 } 46 47 public static FactoryForSecurityManagerFactory getInstance() { 48 if(_theFactory == null){ 49 _theFactory = new FactoryForSecurityManagerFactoryImpl(); 50 } 51 return _theFactory; 52 } 53 56 public SecurityManagerFactory getSecurityManagerFactory(String type) { 57 if(type.equalsIgnoreCase(WEB)){ 58 } else if (type.equalsIgnoreCase(EJB)){ 60 return EJBSecurityManagerFactory.getInstance(); 61 } 62 return null; 63 } 64 } 65 | Popular Tags |