Class | Line # | Actions | |||||
---|---|---|---|---|---|---|---|
AbstractChainableUberspector | 33 | 4 | 0% | 3 | 1 |
1 | /* | |
2 | * See the NOTICE file distributed with this work for additional | |
3 | * information regarding copyright ownership. | |
4 | * | |
5 | * This is free software; you can redistribute it and/or modify it | |
6 | * under the terms of the GNU Lesser General Public License as | |
7 | * published by the Free Software Foundation; either version 2.1 of | |
8 | * the License, or (at your option) any later version. | |
9 | * | |
10 | * This software is distributed in the hope that it will be useful, | |
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
13 | * Lesser General Public License for more details. | |
14 | * | |
15 | * You should have received a copy of the GNU Lesser General Public | |
16 | * License along with this software; if not, write to the Free | |
17 | * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA | |
18 | * 02110-1301 USA, or see the FSF site: http://www.fsf.org. | |
19 | */ | |
20 | package org.xwiki.velocity.introspection; | |
21 | ||
22 | /** | |
23 | * Default implementation of a {@link ChainableUberspector chainable uberspector} that forwards all calls to the wrapped | |
24 | * uberspector (when that is possible). It should be used as the base class for all chainable uberspectors. | |
25 | * | |
26 | * @version $Id: 0a41406ad078c592b0a07af81e4cf7e52f6641f9 $ | |
27 | * @since 1.5M1 | |
28 | * @see ChainableUberspector | |
29 | * @deprecated since 8.0M1; this is now part of the official Velocity library, use | |
30 | * {@link org.apache.velocity.util.introspection.AbstractChainableUberspector} instead | |
31 | */ | |
32 | @Deprecated | |
33 | public abstract class AbstractChainableUberspector | |
34 | extends org.apache.velocity.util.introspection.AbstractChainableUberspector implements ChainableUberspector | |
35 | { | |
36 | 9 | @Override |
37 | public void init() | |
38 | { | |
39 | // This method is kept because the version in Velocity 1.7 doesn't catch exceptions | |
40 | 9 | if (this.inner != null) { |
41 | 3 | try { |
42 | 3 | this.inner.init(); |
43 | } catch (Exception e) { | |
44 | 0 | this.log.error(e.getMessage(), e); |
45 | } | |
46 | } | |
47 | } | |
48 | } |