01: /*
02: * Copyright (c) 2002-2006 by OpenSymphony
03: * All rights reserved.
04: */
05: package com.opensymphony.webwork.views.sitemesh;
06:
07: import com.opensymphony.module.sitemesh.DecoratorMapper;
08: import com.opensymphony.module.sitemesh.Factory;
09: import com.opensymphony.module.sitemesh.PageParser;
10:
11: /**
12: * @author tmjee
13: * @version $Date$ $Id$
14: */
15: public class MockFactory extends Factory {
16:
17: private DecoratorMapper decoratorMapper;
18: private PageParser pageParser;
19:
20: public void setDecoratorMapper(DecoratorMapper decoratorMapper) {
21: this .decoratorMapper = decoratorMapper;
22: }
23:
24: public DecoratorMapper getDecoratorMapper() {
25: return this .decoratorMapper;
26: }
27:
28: public void setPageParser(PageParser pageParser) {
29: this .pageParser = pageParser;
30: }
31:
32: public PageParser getPageParser(String arg0) {
33: return this .pageParser;
34: }
35:
36: public boolean isPathExcluded(String arg0) {
37: return false;
38: }
39:
40: public boolean shouldParsePage(String arg0) {
41: return false;
42: }
43: }
|