Package org.apache.wicket.util.resource.locator

Examples of org.apache.wicket.util.resource.locator.ResourceNameIterator


    {
      // Create the base path
      String path = clazz.getName().replace('.', '/');

      // Iterator over all the combinations
      ResourceNameIterator iter = new ResourceNameIterator(path, style, locale, null);
      while (iter.hasNext())
      {
        String newPath = iter.next();

        final Properties props = propertiesFactory.load(clazz, newPath);
        if (props != null)
        {
          // Lookup the value
View Full Code Here


        {
          path = packageName + "/" + path;
        }

        // Iterator over all the combinations
        ResourceNameIterator iter = newResourceNameIterator(path, locale, style, variation);
        while (iter.hasNext())
        {
          String newPath = iter.next();

          Properties props = propertiesFactory.load(clazz, newPath);
          if (props != null)
          {
            // Lookup the value
View Full Code Here

    {
      // Create the base path
      String path = clazz.getName().replace('.', '/');

      // Iterator over all the combinations
      ResourceNameIterator iter = newResourceNameIterator(path, locale, style, variation);
      while (iter.hasNext())
      {
        String newPath = iter.next();

        Properties props = propertiesFactory.load(clazz, newPath);
        if (props != null)
        {
          // Lookup the value
View Full Code Here

    {
      // Create the base path
      String path = packageName + "/" + filename;

      // Iterator over all the combinations
      ResourceNameIterator iter = new ResourceNameIterator(path, style, locale, null);
      while (iter.hasNext())
      {
        String newPath = iter.next();

        final Properties props = propertiesFactory.load(clazz, newPath);
        if (props != null)
        {
          // Lookup the value
View Full Code Here

    private IResourceStream findResourceStream(final Class<?> scope, final String fileName) {
      // Create the base path
      final String path = Strings.beforeLast(scope.getName(), '.').replace('.', '/') + '/'
          + Strings.beforeLast(fileName, '.');
      // Iterator over all the combinations
      final ResourceNameIterator iter = new ResourceNameIterator(path, _style, _locale, Strings.afterLast(
          fileName, '.'));

      IResourceStream resourceStream = null;
      while (resourceStream == null && iter.hasNext()) {
        final String resourceName = iter.next();
        resourceStream = Application.get().getResourceSettings().getResourceStreamLocator()
            .locate(scope, resourceName, _style, _locale, null);
      }

      if (resourceStream == null) {
View Full Code Here

    {
      // Create the base path
      String path = clazz.getName().replace('.', '/');

      // Iterator over all the combinations
      ResourceNameIterator iter = new ResourceNameIterator(path, style, locale,
        "properties,xml");
      while (iter.hasNext())
      {
        String newPath = (String)iter.next();

        final Properties props = propertiesFactory.load(clazz, newPath);
        if (props != null)
        {
          // Lookup the value
View Full Code Here

        // All GeoServer releated resources are loaded into a GeoServerApplication*.properties file
        String path = "/GeoServerApplication";
        while (true)
        {
            // Iterator over all the combinations
            ResourceNameIterator iter = new ResourceNameIterator(path, style, locale,
                "properties,xml");
            while (iter.hasNext())
            {
                String newPath = (String)iter.next();

                final Properties props = propertiesFactory.load(clazz, newPath);
                if (props != null)
                {
                    // Lookup the qualified key
View Full Code Here

    {
      // Create the base path
      String path = clazz.getName().replace('.', '/');

      // Iterator over all the combinations
      ResourceNameIterator iter = newResourceNameIterator(path, locale, style, variation);
      while (iter.hasNext())
      {
        String newPath = iter.next();

        Properties props = propertiesFactory.load(clazz, newPath);
        if (props != null)
        {
          // Lookup the value
View Full Code Here

    {
      // Create the base path
      String path = packageName + "/" + filename;

      // Iterator over all the combinations
      ResourceNameIterator iter = new ResourceNameIterator(path, style, locale, null);
      while (iter.hasNext())
      {
        String newPath = iter.next();

        final Properties props = propertiesFactory.load(clazz, newPath);
        if (props != null)
        {
          // Lookup the value
View Full Code Here

    {
      // Create the base path
      String path = clazz.getName().replace('.', '/');

      // Iterator over all the combinations
      ResourceNameIterator iter = new ResourceNameIterator(path, style, locale, null);
      while (iter.hasNext())
      {
        String newPath = (String)iter.next();

        final Properties props = propertiesFactory.load(clazz, newPath);
        if (props != null)
        {
          // Lookup the value
View Full Code Here

TOP

Related Classes of org.apache.wicket.util.resource.locator.ResourceNameIterator

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.