Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
ErrorFilterFactoryBean |
|
| 1.0;1 |
1 | /* | |
2 | * $Id: ErrorFilterFactoryBean.java 11984 2008-06-10 15:16:55Z rossmason $ | |
3 | * -------------------------------------------------------------------------------------- | |
4 | * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com | |
5 | * | |
6 | * The software in this package is published under the terms of the CPAL v1.0 | |
7 | * license, a copy of which has been included with this distribution in the | |
8 | * LICENSE.txt file. | |
9 | */ | |
10 | package org.mule.transport.http.config; | |
11 | ||
12 | import org.mule.api.routing.filter.Filter; | |
13 | ||
14 | import org.springframework.beans.factory.FactoryBean; | |
15 | ||
16 | /** | |
17 | * TODO | |
18 | */ | |
19 | 22 | public class ErrorFilterFactoryBean implements FactoryBean |
20 | { | |
21 | private Filter filter; | |
22 | ||
23 | public Object getObject() throws Exception | |
24 | { | |
25 | 2 | return filter; |
26 | } | |
27 | ||
28 | ||
29 | public Class getObjectType() | |
30 | { | |
31 | 20 | return Filter.class; |
32 | } | |
33 | ||
34 | public boolean isSingleton() | |
35 | { | |
36 | 2 | return true; |
37 | } | |
38 | ||
39 | public Filter getFilter() | |
40 | { | |
41 | 0 | return filter; |
42 | } | |
43 | ||
44 | public void setFilter(Filter filter) | |
45 | { | |
46 | 2 | this.filter = filter; |
47 | 2 | } |
48 | } |