We're updating the issue view to help you get more done. 

Allow instantiation of components using interceptor

Description

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.

Environment

None

Status

Assignee

Unassigned

Reporter

Nicolas DUFAILLY

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

4.1.9

Priority

Major