|How to "correctly" supply additional configuration to objects configured in Application.e4 [message #1281864]
||Tue, 01 April 2014 13:27
| Jens Rabe
Registered: September 2013
When I define things in the Application model, I can get additional data into the created objects by:|
1. Setting context properties and using @Inject @Named String
2. using tags or variables and injecting the MPart, getting them back from there
However, at point 1), the parameterization is done to the context and not local to the part, additionally, I can only get Strings from there and have to do conversions to other formats by myself, taking care of any errors, and at point 2), I can only insert lists of strings.
My goal is to get a Class<?> object into the part.
So, what is the best approach to get additional configuration data into the part (and only there)? I thought of using a "variable" with a specified format, like e.g.:
myClass=bundleclass://bundle/my.Clazz and extracting the information in the @PostConstruct method.
Is this the way to go or are there better approaches?
Powered by FUDForum
. Page generated in 0.01821 seconds