public class DefaultFieldHandlerFactory extends FieldHandlerFactory
Constructor and Description |
---|
DefaultFieldHandlerFactory() |
Modifier and Type | Method and Description |
---|---|
GeneralizedFieldHandler |
createFieldHandler(Class type)
Creates a GeneralizedFieldHandler for the given class type.
|
Class[] |
getSupportedTypes()
Returns an array of the supported Class types for this
FieldHandlerFactory.
|
boolean |
isSupportedType(Class type)
Returns true if the given Class type is supported by this
FieldHandlerFactory.
|
public Class[] getSupportedTypes()
getSupportedTypes
in class FieldHandlerFactory
public boolean isSupportedType(Class type)
createFieldHandler(java.lang.Class)
will return a valid FieldHandler. If the type
is not supported, a call to createFieldHandler may return null or throw a
MappingException.isSupportedType
in class FieldHandlerFactory
type
- the Class type to determine support for.public GeneralizedFieldHandler createFieldHandler(Class type) throws MappingException
createFieldHandler
in class FieldHandlerFactory
type
- the Class type to create the FieldHandler for.MappingException
- if a valueOf
method cannot be found.Copyright © 2018. All rights reserved.