4 Replies Latest reply on Jul 16, 2007 6:01 AM by gavin.king

    Seam 2 - CVS State - ResourceBundle Refactoring --> Customiz

    maku01

      Hi,

      I noticed that, in the newest CVS state, several refactorings took place. (before, I worked with Seam 2 Beta and my approach worked)

      I've a customized ResourceBundle implementation which loads the data from a DB.



      @Name("org.jboss.seam.core.resourceBundle")
      @Scope(ScopeType.APPLICATION)
      @Install(precedence = APPLICATION)
      public class ResourceBundle {
       private ExtendedResourceBundle extendedResourceBundle=new ExtendedResourceBundle();
       @Unwrap
       public java.util.ResourceBundle getResourceBundle() {
       return extendedResourceBundle;
       }
      }
      


      and

      public class ExtendedResourceBundle extends SeamResourceBundle {
      
       @Override
       protected Object handleGetObject(String key) {
       ....
       }
      
      }
      



      According to the log it seems that the component is loaded:

      15:16:05,680 INFO [Component] Component: org.jboss.seam.core.resourceBundle, scope: APPLICATION, type: JAVA_BEAN, class: at.hcare.common.ResourceBundle


      But any access to a resource is handled by the default class: org.jboss.seam.core.SeamResourceBundle

      Could anybody give me a hint what I've to do?

      TIA