AnsweredAssumed Answered

Property decorators with dynamic models

Question asked by cgiuliano on Feb 11, 2014
Latest reply on Feb 12, 2014 by cgiuliano
Hi everybody,

I'm in the middle of testing dynamic model deployment, that sounds to be very easy for fast changes during the design and development phases!

I've found an issue about property decorators: I cannot add my decorated property to the list of category decorators, just because I don't know where to put my context file for that!

The following bean can be defined by placing its definition on the file system

<bean id="my.categoryPropertyDecorator" parent="categoryPropertyDecorator" class="org.alfresco.repo.jscript.app.CategoryPropertyDecorator">   
   <property name="propertyName" value="my:category" />   
</bean>
and it works.
But when I move the model definition to the Data Dictionary, the above context file will raise an error, because the bootstrapper does not know the specified namespace at the boot time.

Does anyone know how to have some bean definitions read after the dynamic models loading has been completed?

Thank you all!

Carlo

Outcomes