How does alfresco load the ContentTransformer Beans ?

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2010 11:40 PM
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 ?
Can someone tell me how alfresco load these ContentTransformers ? Where ?
Labels:
- Labels:
-
Archive
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2010 07:02 AM
What's the bug? Has it been raised in JIRA?
Thanks,
Mike
Thanks,
Mike
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2010 07:18 AM
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.
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.
