Hi,
I am trying to implement a FieldHandler by extending
GeneralizedFieldHandler.
My implementation of getFieldType needs the field descriptor, however in
createFieldDesc setFieldDescriptor is being called after getFieldType:
....
protected FieldDescriptor createFieldDesc( Class javaClass,
FieldMapping fieldMap )
throws MappingException
{
....
if (generalized) {
fieldType = ((GeneralizedFieldHandler)exfHandler).getFieldType
();
}
....
if (exfHandler != null)
exfHandler.setFieldDescriptor(fieldDesc);
....
Can this last call be moved before the "if (generalized)" line? After all
GeneralizedFieldHandler ultimately inherits from ExtendedFieldHandler so
it's only fair that it's initialization be called later.
Thanks,
Alex
--------------------------------------------------------------------------
Important: This electronic mail message and any attached files contain
information intended for the exclusive use of the individual or entity to
whom it is addressed and may contain information that is proprietary,
privileged, confidential and/or exempt from disclosure under applicable
law. If you are not the intended recipient, you are hereby notified that
any viewing, dissemination, distribution or copying of this communication
may be subject to legal restriction or sanction. Please notify us
immediately of any unintended recipients and delete the original message
without making any copies.
--------------------------------------------------------------------------
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev