returnType == long.class ||
returnType == float.class ||
returnType == double.class ) ) {
return new SelfNumberExtractor(objectType);
} else if ( Date.class.isAssignableFrom( returnType ) ) {
return new SelfDateExtractor(objectType);
} else {
return new PatternExtractor(objectType);
}
}