Package org.infoglue.cms.entities.management

Examples of org.infoglue.cms.entities.management.InterceptorVO


    List interceptors = InterceptionPointController.getController().getInterceptorsVOList(interceptionPointVO.getInterceptionPointId(), db);
    Iterator interceptorsIterator = interceptors.iterator();
    while(interceptorsIterator.hasNext())
    {
      InterceptorVO interceptorVO = (InterceptorVO)interceptorsIterator.next();
      logger.info("Adding interceptorVO:" + interceptorVO.getName());
      try
      {
        InfoGlueInterceptor infoGlueInterceptor = cachedInterceptors.get(interceptorVO.getClassName());
        if(infoGlueInterceptor == null)
        {
          infoGlueInterceptor = (InfoGlueInterceptor)Class.forName(interceptorVO.getClassName()).newInstance();
          infoGlueInterceptor.setInterceptorVO(interceptorVO);
          cachedInterceptors.put(interceptorVO.getClassName(), infoGlueInterceptor);
        }
        //InfoGlueInterceptor infoGlueInterceptor = (InfoGlueInterceptor)Class.forName(interceptorVO.getClassName()).newInstance();
        infoGlueInterceptor.intercept(infogluePrincipal, interceptionPointVO, hashMap, allowCreatorAccess, db);
      }
      catch(ClassNotFoundException e)
      {
        logger.warn("The interceptor " + interceptorVO.getClassName() + "was not found: " + e.getMessage(), e);
      }
    }

  }
View Full Code Here

TOP

Related Classes of org.infoglue.cms.entities.management.InterceptorVO

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.