View Javadoc

1   /*
2    * $Id: DummyMuleContextAware.java 19191 2010-08-25 21:05:23Z tcarlson $
3    * --------------------------------------------------------------------------------------
4    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.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  
11  package org.mule.config.spring;
12  
13  import org.mule.api.MuleContext;
14  import org.mule.api.MuleEvent;
15  import org.mule.api.MuleException;
16  import org.mule.api.context.MuleContextAware;
17  import org.mule.api.endpoint.ImmutableEndpoint;
18  import org.mule.api.lifecycle.InitialisationException;
19  import org.mule.api.transformer.DataType;
20  import org.mule.api.transformer.Transformer;
21  import org.mule.api.transformer.TransformerException;
22  
23  import java.util.List;
24  
25  public class DummyMuleContextAware implements MuleContextAware, Transformer
26  {
27  
28      public void setMuleContext(MuleContext context)
29      {
30          // empty
31      }
32  
33      public boolean isSourceTypeSupported(Class aClass)
34      {
35          return false;
36      }
37  
38      public List<Class<?>> getSourceTypes()
39      {
40          return null;
41      }
42  
43      public boolean isAcceptNull()
44      {
45          return false;
46      }
47  
48      public boolean isIgnoreBadInput()
49      {
50          return false;
51      }
52  
53      public Object transform(Object src, String encoding) throws TransformerException
54      {
55          return null;
56      }
57  
58      public Object transform(Object src) throws TransformerException
59      {
60          return null;
61      }
62  
63      public void setReturnClass(Class clazz)
64      {
65          //no-op
66      }
67  
68      public Class getReturnClass()
69      {
70          return null;
71      }
72  
73      public ImmutableEndpoint getEndpoint()
74      {
75          return null;
76      }
77  
78      public void setEndpoint(ImmutableEndpoint endpoint)
79      {
80          // empty
81      }
82  
83      public void initialise() throws InitialisationException
84      {
85          // empty
86      }
87  
88      public void dispose()
89      {
90          // empty
91      }
92  
93      public void setName(String name)
94      {
95          // empty
96      }
97  
98      public String getName()
99      {
100         return null;
101     }
102 
103     public void setReturnDataType(DataType type)
104     {
105         //empty
106     }
107 
108     public DataType getReturnDataType()
109     {
110         return null;
111     }
112 
113     public boolean isSourceDataTypeSupported(DataType dataType)
114     {
115         return false;
116     }
117 
118     public List<DataType<?>> getSourceDataTypes()
119     {
120         return null;
121     }
122 
123     public String getMimeType()
124     {
125         return null;
126     }
127 
128     public String getEncoding()
129     {
130         return null;  
131     }
132 
133     public MuleEvent process(MuleEvent event) throws MuleException
134     {
135         return null;
136     }
137 }