title: How to create Alfresco Share Java-backed media viewer?
body: <p>I have investiagted Alfresco <a href="https://github.com/share-extras/media-viewers" rel="nofollow">media-viewers</a> project and also read a lot of <a href="http://docs.alfresco.com/community/index.jsp" rel="nofollow">documentation</a> on WebScripts.</p>
  
  <p>My idea is to create a Java-backed viewer for the Alfresco Share.</p>
  
  <p>The underlying Java code will be a bit complicated - it has to handle additional URLs to load own resources form the bundle to use them.</p>
  
  <p>The ideal solution is to integrate Java code as <a href="http://docs.spring.io/spring/docs/current/spring-framework-reference/html/mvc.html" rel="nofollow">Spring Controller</a> and handle URL mapping with <a href="http://docs.spring.io/spring-framework/docs/4.0.x/javadoc-api/org/springframework/web/bind/annotation/RequestMapping.html" rel="nofollow"><em>@RequestMapping</em></a> annotation (or through servlet-mapping xml node).</p>
  
  <p>If someone know how <a href="http://docs.alfresco.com/4.1/index.jsp?topic=%2Fcom.alfresco.enterprise.doc%2Fconcepts%2Fsurf-fwork-intro.html" rel="nofollow">Programming with Surf</a> can be used in this case it also would be very helpful.</p>