Class ClassPathI18nInitializer

java.lang.Object
org.nuiton.i18n.init.I18nInitializer
org.nuiton.i18n.init.ClassPathI18nInitializer

public class ClassPathI18nInitializer
extends I18nInitializer
Implementation of a I18nInitializer using all i18n resources (from artifacts) discovered in classpath. Will scan all classpath. Note: No order can be predicted with this implementation on bundles.
Since:
1.1
Author:
Tony Chemit - chemit@codelutin.com
  • Field Details

    • loader

      protected java.lang.ClassLoader loader
      class loader to use (optional)
    • extraURLs

      protected java.net.URL[] extraURLs
  • Constructor Details

  • Method Details

    • resolvURLs

      public java.net.URL[] resolvURLs() throws java.lang.Exception
      Throws:
      java.lang.Exception
    • resolvBundles

      public I18nBundle[] resolvBundles() throws java.lang.Exception
      Description copied from class: I18nInitializer
      Resolv the bundles.
      Specified by:
      resolvBundles in class I18nInitializer
      Returns:
      the bundles detected
      Throws:
      java.lang.Exception - if any pb while getting bundles
    • getExtraURLs

      public java.net.URL[] getExtraURLs()
    • getLoader

      public java.lang.ClassLoader getLoader()