Creates a new instance of FactoryForSecurityManagerFactoryImpl
try { rwLock.readLock().lock(); if (_theFactory != null) { return _theFactory; } } finally { rwLock.readLock().unlock(); } try { rwLock.writeLock().lock(); if (_theFactory == null) { _theFactory = new FactoryForSecurityManagerFactoryImpl(); } return _theFactory; } finally { rwLock.writeLock().unlock(); }
if(type.equalsIgnoreCase(WEB)){ // return WebSecurityManagerFactory.getInstance(); } else if (type.equalsIgnoreCase(EJB)){ return EJBSecurityManagerFactory.getInstance(); } return null;