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

Quick Search    Search Deep

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

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

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

TransformerConverterwill obtain a provider name and convert it to a UMOProviderDescriptor instance by looking up the proivder from 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
ProviderConverter()
          Create a org.apache.commons.beanutils.Converter that will throw a org.apache.commons.beanutils.ConversionException if a conversion error occurs.
ProviderConverter(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

ProviderConverter

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


ProviderConverter

public ProviderConverter(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