对ActionMapperFactory的一点疑惑

对ActionMapperFactory的一点疑惑
public   class  ActionMapperFactory  {
    
    
protected   static   final  Log LOG  =  LogFactory.getLog(ActionMapperFactory. class );

    
private   static   final  HashMap classMap  =   new  HashMap();

    
public   static  ActionMapper getMapper()  {
        
synchronized  (classMap)  {
            String clazz 
=  (String) Configuration.get(WebWorkConstants.WEBWORK_MAPPER_CLASS);
            
try   {
                ActionMapper mapper 
=  (ActionMapper) classMap.get(clazz);
                
if  (mapper  ==   null {
                    mapper 
=  (ActionMapper) ObjectFactory.getObjectFactory().buildBean(clazz,  null );
                    classMap.put(clazz, mapper);
                }


                
return  mapper;
            }
  catch  (Exception e)  {
                String msg 
=   " Could not create ActionMapper: WebWork will *not* work! " ;
                LOG.fatal(msg, e);
                
throw   new  RuntimeException(msg, e);
            }

        }

    }

}


明白的告诉我一下,谢谢. 觉的有点问题...

你可能感兴趣的:(对ActionMapperFactory的一点疑惑)