|
This would be nice to use Interceptor instantiate functionnality before invoking the ComponentTuplizer toolchain (currently in ComponentMetamodel).
The Interceptor is an easy workaround to allow creating objects that don't have a default constructor (eg. to persist interfaces where instances only came from a factory) using entity names. Indeed, a reference to an object factory can be supplied (at Configuration step) to the Interceptor instance to do the job (-> currently tested and working great).
For Components, there's currently no such possibility but it seems technically possible looking at comments in ComponentMetamodel (commented prototype to inject a SessionFactoryImplementor) and associated open JIRA issues. Moreover, there's no tweak that could be applied to replace this functionnality since Tuplizers have fixed constructors and ComponentTuplizerFactory insctance creation is hardcoded in ComponentMetamodel.
|