cancel
Showing results for 
Search instead for 
Did you mean: 

How does alfresco load the ContentTransformer Beans ?

zengqingyi12
Champ in-the-making
Champ in-the-making
I want to add a ContentTransformer to alfresco, and I found there is a file content-services-context.xml which has many contentTransformer bean, But I found through the whole project source code, I cann't find the source code which load these beans, I want to do this because there is a preview bug in alfresco, I need to fix it.

Can someone tell me how alfresco load these ContentTransformers ? Where ?
2 REPLIES 2

mikeh
Star Contributor
Star Contributor
What's the bug? Has it been raised in JIRA?

Thanks,
Mike

mrogers
Star Contributor
Star Contributor
You are looking at the correct place.

The beans are instantiated by Spring and then the content transformers register themselves with the contentTransformerRegistry.   

There's a Java abstract base class with a matching spring configuration called "baseContentTransformer" which will do this for you or you can write your own method to call the "register" method.