Package ca.simplegames.micro.filters

Examples of ca.simplegames.micro.filters.FilterManager


      messageSource.setFallbackToSystemLocale(fallbackToSystemLocale);
      messageSource.setCacheSeconds(resourceCacheRefreshInterval);
      messageSource.setBasenames(resourceBasePaths);

      Filter i18N = new I18NFilter(this);
      final FilterManager filterManager = site.getFilterManager();

      filterManager.addFilter(i18N);
      // now make sure the i18N filter is always first (if present)
      Collections.swap(filterManager.getBeforeFilters(), 0, filterManager.getBeforeFilters().size() - 1);

      infoDetails.add(String.format("  default encoding ........: %s", defaultEncoding));
      infoDetails.add(String.format("  fallback to system locale: %s", fallbackToSystemLocale));
      infoDetails.add(String.format("  cache refresh ...........: %s", resourceCacheRefreshInterval));
      infoDetails.add(String.format("  resource bundle .........: %s", Arrays.toString(resourceBasePaths)));
View Full Code Here


        // - Filters
        // log.info("Filters:");
        File filtersConfig = new File(configPath, "filters.yml");
        if (filtersConfig.exists()) {
          filterManager = new FilterManager(this,
              (List<Map<String, Object>>) new Yaml().load(new FileInputStream(filtersConfig)));
        }

        // The strategy used for loading Helpers and Extensions will eventually be just one, currently
        // exploring different methods for managing them, hence the redundancy, sorry for that.
View Full Code Here

TOP

Related Classes of ca.simplegames.micro.filters.FilterManager

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.