/*    */ package com.picc.grab.config;
/*    */ 
/*    */ import com.jagregory.shiro.freemarker.ShiroTags;
/*    */ import freemarker.template.Configuration;
/*    */ import freemarker.template.TemplateModel;
/*    */ import org.springframework.beans.factory.InitializingBean;
/*    */ import org.springframework.beans.factory.annotation.Autowired;
/*    */ import org.springframework.stereotype.Component;
/*    */ import org.springframework.web.servlet.view.freemarker.FreeMarkerViewResolver;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ @Component
/*    */ public class ShiroTagFreeMarkerConfigurer
/*    */   implements InitializingBean
/*    */ {
/*    */   @Autowired
/*    */   private Configuration configuration;
/*    */   @Autowired
/*    */   private FreeMarkerViewResolver resolver;
/*    */   
/*    */   public void afterPropertiesSet() throws Exception {
/* 25 */     this.configuration.setSharedVariable("shiroTag", (TemplateModel)new ShiroTags());
/*    */ 
/*    */ 
/*    */     
/* 29 */     this.resolver.setRequestContextAttribute("context");
/*    */   }
/*    */ }


/* Location:              C:\Users\Administrator\Desktop\ROOT\WEB-INF\classes\!\com\picc\grab\config\ShiroTagFreeMarkerConfigurer.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */