org.mule.config.spring
Class DummyMuleContextAware

java.lang.Object
  extended by org.mule.config.spring.DummyMuleContextAware
All Implemented Interfaces:
MuleContextAware, Disposable, Initialisable, NameableObject, NamedObject, MessageProcessor, Transformer, EndpointAware

public class DummyMuleContextAware
extends Object
implements MuleContextAware, Transformer


Field Summary
 
Fields inherited from interface org.mule.api.lifecycle.Initialisable
PHASE_NAME
 
Fields inherited from interface org.mule.api.lifecycle.Disposable
PHASE_NAME
 
Constructor Summary
DummyMuleContextAware()
           
 
Method Summary
 void dispose()
           
 String getEncoding()
           
 ImmutableEndpoint getEndpoint()
           
 String getMimeType()
           
 String getName()
           
 Class getReturnClass()
           
 DataType getReturnDataType()
           
 List<DataType<?>> getSourceDataTypes()
           
 List<Class<?>> getSourceTypes()
           
 void initialise()
           
 boolean isAcceptNull()
           
 boolean isIgnoreBadInput()
           
 boolean isSourceDataTypeSupported(DataType dataType)
           
 boolean isSourceTypeSupported(Class aClass)
           
 MuleEvent process(MuleEvent event)
           
 void setEndpoint(ImmutableEndpoint endpoint)
           
 void setMuleContext(MuleContext context)
           
 void setName(String name)
           
 void setReturnClass(Class clazz)
           
 void setReturnDataType(DataType type)
           
 Object transform(Object src)
           
 Object transform(Object src, String encoding)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DummyMuleContextAware

public DummyMuleContextAware()
Method Detail

setMuleContext

public void setMuleContext(MuleContext context)
Specified by:
setMuleContext in interface MuleContextAware

isSourceTypeSupported

public boolean isSourceTypeSupported(Class aClass)
Specified by:
isSourceTypeSupported in interface Transformer

getSourceTypes

public List<Class<?>> getSourceTypes()
Specified by:
getSourceTypes in interface Transformer

isAcceptNull

public boolean isAcceptNull()
Specified by:
isAcceptNull in interface Transformer

isIgnoreBadInput

public boolean isIgnoreBadInput()
Specified by:
isIgnoreBadInput in interface Transformer

transform

public Object transform(Object src,
                        String encoding)
                 throws TransformerException
Specified by:
transform in interface Transformer
Throws:
TransformerException

transform

public Object transform(Object src)
                 throws TransformerException
Specified by:
transform in interface Transformer
Throws:
TransformerException

setReturnClass

public void setReturnClass(Class clazz)
Specified by:
setReturnClass in interface Transformer

getReturnClass

public Class getReturnClass()
Specified by:
getReturnClass in interface Transformer

getEndpoint

public ImmutableEndpoint getEndpoint()
Specified by:
getEndpoint in interface Transformer

setEndpoint

public void setEndpoint(ImmutableEndpoint endpoint)
Specified by:
setEndpoint in interface EndpointAware

initialise

public void initialise()
                throws InitialisationException
Specified by:
initialise in interface Initialisable
Throws:
InitialisationException

dispose

public void dispose()
Specified by:
dispose in interface Disposable

setName

public void setName(String name)
Specified by:
setName in interface NameableObject

getName

public String getName()
Specified by:
getName in interface NamedObject

setReturnDataType

public void setReturnDataType(DataType type)
Specified by:
setReturnDataType in interface Transformer

getReturnDataType

public DataType getReturnDataType()
Specified by:
getReturnDataType in interface Transformer

isSourceDataTypeSupported

public boolean isSourceDataTypeSupported(DataType dataType)
Specified by:
isSourceDataTypeSupported in interface Transformer

getSourceDataTypes

public List<DataType<?>> getSourceDataTypes()
Specified by:
getSourceDataTypes in interface Transformer

getMimeType

public String getMimeType()
Specified by:
getMimeType in interface Transformer

getEncoding

public String getEncoding()
Specified by:
getEncoding in interface Transformer

process

public MuleEvent process(MuleEvent event)
                  throws MuleException
Specified by:
process in interface MessageProcessor
Throws:
MuleException


Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.