Package org.apache.wicket.resource.loader

Examples of org.apache.wicket.resource.loader.ClassStringResourceLoader


  public ResourceSettings(final Application application)
  {
    this.application = application;
    stringResourceLoaders.add(new ComponentStringResourceLoader());
    stringResourceLoaders.add(new PackageStringResourceLoader());
    stringResourceLoaders.add(new ClassStringResourceLoader(application.getClass()));
    stringResourceLoaders.add(new ValidatorStringResourceLoader());
    stringResourceLoaders.add(new InitializerStringResourceLoader(application.getInitializers()));
  }
View Full Code Here


  public ResourceSettings(final Application application)
  {
    this.application = application;
    stringResourceLoaders.add(new ComponentStringResourceLoader());
    stringResourceLoaders.add(new PackageStringResourceLoader());
    stringResourceLoaders.add(new ClassStringResourceLoader(application.getClass()));
    stringResourceLoaders.add(new ValidatorStringResourceLoader());
    stringResourceLoaders.add(new JarStringResourceLoader());
  }
View Full Code Here

  public Settings(final Application application)
  {
    this.application = application;
    this.markupParserFactory = new MarkupParserFactory(application);
    stringResourceLoaders.add(new ComponentStringResourceLoader());
    stringResourceLoaders.add(new ClassStringResourceLoader(this.application.getClass()));
  }
View Full Code Here

  public ResourceSettings(final Application application)
  {
    this.application = application;
    stringResourceLoaders.add(new ComponentStringResourceLoader());
    stringResourceLoaders.add(new PackageStringResourceLoader());
    stringResourceLoaders.add(new ClassStringResourceLoader(application.getClass()));
    stringResourceLoaders.add(new ValidatorStringResourceLoader());
    stringResourceLoaders.add(new InitializerStringResourceLoader(application.getInitializers()));
  }
View Full Code Here

  public Settings(final Application application)
  {
    this.application = application;
    stringResourceLoaders.add(new ComponentStringResourceLoader());
    stringResourceLoaders.add(new PackageStringResourceLoader());
    stringResourceLoaders.add(new ClassStringResourceLoader(this.application.getClass()));
  }
View Full Code Here

   */
  public Settings(final Application application)
  {
    this.application = application;
    stringResourceLoaders.add(new ComponentStringResourceLoader());
    stringResourceLoaders.add(new ClassStringResourceLoader(this.application.getClass()));
  }
View Full Code Here

   * Return the loader instance
   * @return The loader instance to test
   */
  protected IStringResourceLoader createLoader()
  {
    return new ClassStringResourceLoader(application.getClass());
  }
View Full Code Here

   */
  public void testLoaderUnknownResources()
  {
    WicketTester tester = new WicketTester();
    WebApplication app = tester.getApplication();
    IStringResourceLoader loader = new ClassStringResourceLoader(app.getClass());
    Assert.assertNull("Unknown resource should return null", loader.loadStringResource(component.getClass(),
        "test.string", Locale.getDefault(), null));
    tester.destroy();
  }
View Full Code Here

        protected void init() {
            //JD: override some resource settings to allow for custom i18n lookups
            getResourceSettings().setResourceStreamLocator(new GeoServerResourceStreamLocator());
            getResourceSettings().addStringResourceLoader(new GeoServerStringResourceLoader());
            getResourceSettings().addStringResourceLoader(new ComponentStringResourceLoader());
            getResourceSettings().addStringResourceLoader(new ClassStringResourceLoader(this.getClass()));

            getResourceSettings().setPropertiesFactory(new PropertiesFactory(this) {
                @Override
                public Properties load(Class clazz, String path) {
                    if ( clazz == WicketTestApplication.class && path.startsWith(wtapath)) {
View Full Code Here

        protected void init() {
            //JD: override some resource settings to allow for custom i18n lookups
            getResourceSettings().setResourceStreamLocator(new GeoServerResourceStreamLocator());
            getResourceSettings().addStringResourceLoader(new GeoServerStringResourceLoader());
            getResourceSettings().addStringResourceLoader(new ComponentStringResourceLoader());
            getResourceSettings().addStringResourceLoader(new ClassStringResourceLoader(this.getClass()));

            getResourceSettings().setPropertiesFactory(new PropertiesFactory(this) {
                @Override
                public Properties load(Class clazz, String path) {
                    if ( clazz == WicketTestApplication.class && path.startsWith(wtapath)) {
View Full Code Here

TOP

Related Classes of org.apache.wicket.resource.loader.ClassStringResourceLoader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.