1 9 10 package com.opensymphony.module.sitemesh.mapper; 11 12 import com.opensymphony.module.sitemesh.Config; 13 import com.opensymphony.module.sitemesh.Decorator; 14 import com.opensymphony.module.sitemesh.DecoratorMapper; 15 import com.opensymphony.module.sitemesh.Page; 16 17 import javax.servlet.http.HttpServletRequest ; 18 import java.util.Properties ; 19 20 32 public abstract class AbstractDecoratorMapper implements DecoratorMapper { 33 34 protected DecoratorMapper parent = null; 35 protected Config config = null; 36 37 38 public void init(Config config, Properties properties, DecoratorMapper parent) throws InstantiationException { 39 this.parent = parent; 40 this.config = config; 41 } 42 43 44 public Decorator getDecorator(HttpServletRequest request, Page page) { 45 return parent.getDecorator(request, page); 46 } 47 48 49 public Decorator getNamedDecorator(HttpServletRequest request, String name) { 50 return parent.getNamedDecorator(request, name); 51 } 52 } 53 | Popular Tags |