• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

hazendaz / sitemesh2 / 59

22 Mar 2026 02:30AM UTC coverage: 40.347%. Remained the same
59

push

github

hazendaz
[mvn] Update maven wrapper

698 of 1891 branches covered (36.91%)

Branch coverage included in aggregate %.

1555 of 3693 relevant lines covered (42.11%)

0.42 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/main/java/com/opensymphony/module/sitemesh/mapper/AbstractDecoratorMapper.java
1
/*
2
 * SPDX-License-Identifier: Apache-2.0
3
 * Copyright 2011-2026 Hazendaz
4
 */
5
/*
6
 * Title:        AbstractDecoratorMapper
7
 * Description:
8
 *
9
 * This software is published under the terms of the OpenSymphony Software
10
 * License version 1.1, of which a copy has been included with this
11
 * distribution in the LICENSE.txt file.
12
 */
13

14
package com.opensymphony.module.sitemesh.mapper;
15

16
import com.opensymphony.module.sitemesh.Config;
17
import com.opensymphony.module.sitemesh.Decorator;
18
import com.opensymphony.module.sitemesh.DecoratorMapper;
19
import com.opensymphony.module.sitemesh.Page;
20

21
import jakarta.servlet.http.HttpServletRequest;
22

23
import java.util.Properties;
24

25
/**
26
 * Abstract DecoratorMapper implementation for easy creation of new DecoratorMappers.
27
 * <p>
28
 * Typically, an implementation would override getNamedDecorator() <b>or</b> getDecorator(). If a Decorator cannot be
29
 * returned from either of these, then they should delegate to their superclass.
30
 *
31
 * @author <a href="mailto:joe@truemesh.com">Joe Walnes</a>
32
 *
33
 * @see com.opensymphony.module.sitemesh.DecoratorMapper
34
 */
35
public abstract class AbstractDecoratorMapper implements DecoratorMapper {
×
36

37
    /** Parent DecoratorMapper. */
38
    protected DecoratorMapper parent;
39

40
    /** The config. */
41
    protected Config config;
42

43
    @Override
44
    public void init(Config config, Properties properties, DecoratorMapper parent) throws InstantiationException {
45
        this.parent = parent;
×
46
        this.config = config;
×
47
    }
×
48

49
    @Override
50
    public Decorator getDecorator(HttpServletRequest request, Page page) {
51
        return parent.getDecorator(request, page);
×
52
    }
53

54
    @Override
55
    public Decorator getNamedDecorator(HttpServletRequest request, String name) {
56
        return parent.getNamedDecorator(request, name);
×
57
    }
58
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc