Class ConverterFacade
- java.lang.Object
-
- org.apache.commons.beanutils.converters.ConverterFacade
-
- All Implemented Interfaces:
Converter
public final class ConverterFacade extends java.lang.Object implements Converter
Provides a facade forConverterimplementations preventing access to any public API in the implementation, other than that specified byConverter.This implementation can be used to prevent registered
Converterimplementations that provide configuration options from being retrieved and modified.- Since:
- 1.8.0
-
-
Constructor Summary
Constructors Constructor Description ConverterFacade(Converter converter)Construct a converter which delegates to the specifiedConverterimplementation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Tconvert(java.lang.Class<T> type, java.lang.Object value)Convert the input object into an output object of the specified type by delegating to the underlyingConverterimplementation.java.lang.StringtoString()Provide a String representation of this facade implementation sand the underlyingConverterit delegates to.
-
-
-
Field Detail
-
converter
private final Converter converter
-
-
Method Detail
-
convert
public <T> T convert(java.lang.Class<T> type, java.lang.Object value)Convert the input object into an output object of the specified type by delegating to the underlyingConverterimplementation.
-
toString
public java.lang.String toString()
Provide a String representation of this facade implementation sand the underlyingConverterit delegates to.- Overrides:
toStringin classjava.lang.Object- Returns:
- A String representation of this facade implementation
sand the underlying
Converterit delegates to
-
-