1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.jdiagnose.library.web.breadcrumb;
17
18 import javax.servlet.http.HttpServletRequest;
19
20 /***
21 * @author jmccrindle
22 */
23 public class CrumbFactoryWrapper implements CrumbFactory {
24
25 private CrumbFactory crumbFactory = null;
26
27 public CrumbFactoryWrapper() {
28
29 }
30
31 public CrumbFactoryWrapper(CrumbFactory crumbFactory) {
32 this.crumbFactory = crumbFactory;
33 }
34
35 public void setCrumbFactory(CrumbFactory crumbFactory) {
36 this.crumbFactory = crumbFactory;
37 }
38
39 public CrumbFactory getCrumbFactory() {
40 return crumbFactory;
41 }
42
43
44
45 public Crumb getCrumb(HttpServletRequest request, String url) {
46 return crumbFactory.getCrumb(request, url);
47 }
48 }