Package org.apache.wicket.resource

Examples of org.apache.wicket.resource.IPropertiesFactory


    {
      return null;
    }

    // Load the properties associated with the path
    IPropertiesFactory propertiesFactory = Application.get().getResourceSettings()
        .getPropertiesFactory();

    while (true)
    {
      // 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
          String value = props.getString(key);
          if (value != null)
View Full Code Here


     */
    public String loadStringResource(Class clazz, final String key, final Locale locale,
        final String style)
    {
        // Load the properties associated with the path
        IPropertiesFactory propertiesFactory = Application.get().getResourceSettings()
            .getPropertiesFactory();

        // 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
                    String qualifiedKey = clazz != null ? clazz.getSimpleName() + "." + key : key;
                    String value = props.getString(qualifiedKey);
View Full Code Here

TOP

Related Classes of org.apache.wicket.resource.IPropertiesFactory

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.