Class AbstractFormatFactory
- java.lang.Object
-
- org.apache.camel.dataformat.bindy.format.factories.AbstractFormatFactory
-
- All Implemented Interfaces:
FormatFactoryInterface
- Direct Known Subclasses:
BigDecimalFormatFactory,BigDecimalPatternFormatFactory,BigIntegerFormatFactory,BooleanFormatFactory,ByteFormatFactory,BytePatternFormatFactory,CharacterFormatFactory,DateFormatFactory,DoubleFormatFactory,DoublePatternFormatFactory,EnumFormatFactory,FloatFormatFactory,FloatPatternFormatFactory,IntegerFormatFactory,IntegerPatternFormatFactory,LocalDateFormatFactory,LocalDateTimeFormatFactory,LocalTimeFormatFactory,LongFormatFactory,LongPatternFormatFactory,ShortFormatFactory,ShortPatternFormatFactory,StringFormatFactory,ZonedDateTimeFormatFactory
public abstract class AbstractFormatFactory extends Object implements FormatFactoryInterface
-
-
Field Summary
Fields Modifier and Type Field Description protected List<Class<?>>supportedClasses
-
Constructor Summary
Constructors Constructor Description AbstractFormatFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanBuild(FormattingOptions formattingOptions)Can it build aFormat.Collection<Class<?>>supportedClasses()Returns the list of supported classes.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.camel.dataformat.bindy.format.factories.FormatFactoryInterface
build
-
-
-
-
Method Detail
-
supportedClasses
public Collection<Class<?>> supportedClasses()
Description copied from interface:FormatFactoryInterfaceReturns the list of supported classes. When the list doesn't contain elements the factory is supposed to support all kinds of classes. The factory must decide on other criteria whether it can build aFormat.- Specified by:
supportedClassesin interfaceFormatFactoryInterface- Returns:
- the list of supported classes
-
canBuild
public boolean canBuild(FormattingOptions formattingOptions)
Description copied from interface:FormatFactoryInterface- Specified by:
canBuildin interfaceFormatFactoryInterface- Returns:
- can build
-
-