[MAGNOLIA-2188] Provide the possibility to register custom Content2BeanTransformer for specific classes Created: 18/Jun/08  Updated: 23/Jan/13  Resolved: 19/Jun/08

Status: Closed
Project: Magnolia
Component/s: core
Affects Version/s: None
Fix Version/s: 3.6

Type: New Feature Priority: Major
Reporter: Magnolia International Assignee: Philipp Bärfuss
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Date of First Response:

 Description   

This should be possible for both magnolia classes and external classes (i.e i want to be able to use content2bean for ehcache configuration, but their configuration bean isn't 100% javabean compatible, for example)



 Comments   
Comment by Philipp Bracher [ 19/Jun/08 ]

You have the following options:

  • ClassNameTransformer
  • set a property (mgnl-beans.properties, module descriptor): com.package.ClassName.transformer with the transformer class

This makes it possible to use custom transformers for module configurations. I added some transformers:

  • VoterSet
  • CompositeFilter
  • CompositeExecutor

This allows also the usage of constuctors if you have to. For that overwrite the newBeaninstance() method

Generated at Mon Feb 12 03:34:16 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.