How would a subclass of org.jboss.seam.core.ResourceBundle be annotated in this 
case - are the annotations below correct?

Also, would some extra configuration in components.xml be required too?

ExtendedResourceBundle.java

  | ...
  | @Scope(ScopeType.SESSION)
  | @Intercept(NEVER)
  | @Name("org.jboss.seam.core.resourceBundle")
  | @Install(precedence=BUILT_IN)
  | public class ExtendedResourceBundle extends 
org.jboss.seam.core.ResourceBundle 
  | ...  
  |   @Override
  |   protected ResourceBundle loadBundle(String bundleName) {
  |     try {
  |       ResourceBundle bundle =
  |           ResourceBundle.getBundle(bundleName,
  |           Locale.instance(),
  |           Thread.currentThread().getContextClassLoader(),
  |           DBControl.INSTANCE);
  |       LOG.debug("loaded resource bundle: " + bundleName);
  |       return bundle;
  |     } catch (MissingResourceException mre) {
  |       LOG.debug("db resource bundle missing: " + bundleName);
  |       return super.loadBundle(bundleName);
  |     }
  |   }
  | ...  
  | }
  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4016319#4016319

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4016319
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to