FileDocCategorySizeDatePackage
AbstractSecurityManagerFactory.javaAPI DocGlassfish v2 API3677Fri May 04 22:35:32 BST 2007com.sun.enterprise.security.factory

AbstractSecurityManagerFactory

public abstract class AbstractSecurityManagerFactory extends Object implements com.sun.enterprise.security.factory.SecurityManagerFactory
This class is the parent for Web/Ejb SecurityManager. It keeps a pool of SM objects.
author
Harpreet Singh

Fields Summary
protected static final Logger
_logger
protected Map
_securityManagerPool
Constructors Summary
Methods Summary
protected com.sun.enterprise.SecurityManager_poolGet(java.lang.String contextId)

        return (SecurityManager)_securityManagerPool.get(contextId);
    
protected boolean_poolHas(java.lang.String contextId)
Does the SM pool has this SM already

param
String the context Id of the SecurityManager
return
true, if SM present, false otherwise

    
        
    
        

                                
       
       return _securityManagerPool.containsKey(contextId);
    
protected void_poolPut(java.lang.String contextId, com.sun.enterprise.SecurityManager smf)

        synchronized(_securityManagerPool){
            _securityManagerPool.put(contextId, smf);   
        }
    
public abstract com.sun.enterprise.SecurityManagercreateSecurityManager(com.sun.enterprise.deployment.Descriptor descriptor)

public abstract com.sun.enterprise.SecurityManagergetSecurityManager(java.lang.String contextId)

public voidremoveSecurityManager(java.lang.String contextId)

        synchronized (_securityManagerPool){
            _securityManagerPool.remove(contextId);
        }