View Javadoc

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  public class ErrorFilterFactoryBean implements FactoryBean
20  {
21      private Filter filter;
22  
23      public Object getObject() throws Exception
24      {
25          return filter;
26      }
27  
28  
29      public Class getObjectType()
30      {
31          return Filter.class;
32      }
33  
34      public boolean isSingleton()
35      {
36          return true;
37      }
38  
39      public Filter getFilter()
40      {
41          return filter;
42      }
43  
44      public void setFilter(Filter filter)
45      {
46          this.filter = filter;
47      }
48  }