1 Reply Latest reply on Apr 1, 2010 10:55 AM by Dmitri Ilyin

    Need Patch for document store

    Dmitri Ilyin Newbie

      Hi all,


      i would like to install my own implementation of DocumentStore.
      In the current implementation (2.2.1 CR1) it is not possible, becouse DocumentStore component is always (in i.e. DocumentStorePhaseListener, DocumentStoreServlet) retrieved with
      DocumentStore.instance()
      method. The implementation always returns an installed instance of DocumentStore




      public static DocumentStore instance()
      {
       return (DocumentStore) Component.getInstance(DocumentStore.class);
      }
      




      I think simple patch could do the job.




      public static DocumentStore instance()
      {
        return (DocumentStore) Component.getInstance("org.jboss.seam.document.documentStore");
      }






      To install my own component i then only have to derive from DocumentStore and install my component with




      @Install(precedence=Install.APPLICATION)





      For now i have to implement and configure my own DocumentStoreServlet in that i then use my DocumentStore component.


      I think it is realy a small patch and could be useful.


      regards
      Dmitri