Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.mule.digester.converters
Class ConnectorConverter  view ConnectorConverter download ConnectorConverter.java

java.lang.Object
  extended byorg.mule.digester.converters.ConnectorConverter
All Implemented Interfaces:
org.apache.commons.beanutils.Converter

public class ConnectorConverter
extends java.lang.Object
implements org.apache.commons.beanutils.Converter

TransformerConverter will obtain a connector name and convert it to a UMOConnector instance by looking up the connector in the MuleManager.

Version:
$Revision: 1.5 $

Field Summary
private  java.lang.Object defaultValue
          The default value specified to our Constructor, if any.
(package private)  org.mule.MuleManager manager
           
private  boolean useDefault
          Should we return the default value on conversion errors?
 
Constructor Summary
ConnectorConverter()
          Create a org.apache.commons.beanutils.Converter that will throw a org.apache.commons.beanutils.ConversionException if a conversion error occurs.
ConnectorConverter(java.lang.Object defaultValue)
          Create a org.apache.commons.beanutils.Converter that will return the specified default value if a conversion error occurs.
 
Method Summary
 java.lang.Object convert(java.lang.Class type, java.lang.Object value)
          Convert the specified input object into an output object of the specified type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaultValue

private java.lang.Object defaultValue
The default value specified to our Constructor, if any.


useDefault

private boolean useDefault
Should we return the default value on conversion errors?


manager

org.mule.MuleManager manager
Constructor Detail

ConnectorConverter

public ConnectorConverter()
Create a org.apache.commons.beanutils.Converter that will throw a org.apache.commons.beanutils.ConversionException if a conversion error occurs.


ConnectorConverter

public ConnectorConverter(java.lang.Object defaultValue)
Create a org.apache.commons.beanutils.Converter that will return the specified default value if a conversion error occurs.

Method Detail

convert

public java.lang.Object convert(java.lang.Class type,
                                java.lang.Object value)
Convert the specified input object into an output object of the specified type.

Specified by:
convert in interface org.apache.commons.beanutils.Converter