ahhh, thanks. the missing link.

regards,

Ernst

2009/11/23 Jan Haderka <[email protected]>:
>
> Hi Ernst,
> there are 2 other places where it looks for the impl classes:
> mgnl-beans.properties file in the magnolia-core.jar
> and modules descriptors (each module can add the mapping in its
> properties section), which is what for example STKdoes ...
>
>  <properties>
>    <property>
>      <name>info.magnolia.module.templatingkit.style.Theme</name>
>      <value>info.magnolia.module.templatingkit.style.ThemeImpl</value>
>    </property>
>    <property>
>      <name>info.magnolia.module.templatingkit.sites.SiteManager</name>
>
> <value>info.magnolia.module.templatingkit.sites.STKSiteManager</value>
>    </property>
>    <property>
>
> <name>info.magnolia.module.templatingkit.beanmerger.BeanMerger</name>
>
> <value>info.magnolia.module.templatingkit.beanmerger.STKBeanMerger</value>
>    </property>
>    <property>
>
> <name>info.magnolia.module.templatingkit.categorization.CategorizationSupport</name>
>
> <value>info.magnolia.module.templatingkit.categorization.STKCategorizationSupport</value>
>    </property>
>  </properties>
>
> so you can do the same to associate any interface with the default impl.
> You can also associate path with the implementation class.
> HTH,
> Jan
>
>
>
> On Mon, 2009-11-23 at 15:43 +0100, Ernst Bunders wrote:
>> hello
>>
>> I am trying to understand how the content2bean process picks an
>> implmentation class if there is no class property in the relevant
>> content node.
>> To be specific, i am looking at the enhanced templating kit imaging
>> configuration.
>>
>> in config/modules/standard-templating-kit/themes/pop/imaging/variations
>> there is a whole list of imaging varations, that somehow must use an
>> implementation of the interface Variation. Yet non of these nodes have
>> a class property.
>> The same applies for the rule property of type VariationRule. no class
>> property anywhere.
>>
>> So: there must be a mechanism for registering default implementations
>> for interfaces. Can anybody tell me how this works?
>>
>> thanks,
>>
>
>
> ----------------------------------------------------------------
> For list details see
> http://www.magnolia-cms.com/home/community/mailing-lists.html
> To unsubscribe, E-mail to: <[email protected]>
> ----------------------------------------------------------------
>
>



-- 
Ernst bunders
Ontwikkelaar VPRO

----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to