Examples of ICacheManager


Examples of org.pentaho.platform.api.engine.ICacheManager

  // TODO: clean this up so we don't have a fallback impl
  public static ICacheManager getCacheManager( IPentahoSession session ) {
    try {
      // TODO get the SimpleMapCacheManager into the object map somehow
      // we will try to use a simple map cache manager if one has not been configured
      ICacheManager cacheManager = aggObjectFactory.get( ICacheManager.class, session );
      return cacheManager;
    } catch ( ObjectFactoryException e ) {
      ICacheManager cacheManager = SimpleMapCacheManager.getInstance();
      Logger.warn( PentahoSystem.class.getName(), "Using default cache manager" ); //$NON-NLS-1$
      return cacheManager;
    }
  }
View Full Code Here

Examples of org.thymeleaf.cache.ICacheManager

    private static SpelExpression getExpression(final Configuration configuration, final String spelExpression) {
       
        SpelExpression exp = null;
        ICache<String, Object> cache = null;
       
        final ICacheManager cacheManager = configuration.getCacheManager();
        if (cacheManager != null) {
            cache = cacheManager.getExpressionCache();
            if (cache != null) {
                exp = (SpelExpression) cache.get(SPEL_CACHE_PREFIX + spelExpression);
            }
        }
       
View Full Code Here

Examples of org.thymeleaf.cache.ICacheManager

    private static SpelExpression getExpression(final Configuration configuration, final String spelExpression) {
       
        SpelExpression exp = null;
        ICache<String, Object> cache = null;
       
        final ICacheManager cacheManager = configuration.getCacheManager();
        if (cacheManager != null) {
            cache = cacheManager.getExpressionCache();
            if (cache != null) {
                exp = (SpelExpression) cache.get(SPEL_CACHE_PREFIX + spelExpression);
            }
        }
       
View Full Code Here

Examples of org.thymeleaf.cache.ICacheManager

    final String cacheKey = TEMPLATE_CACHE_PREFIX + baseName + "_"+ locale.toString();
   
    Properties properties = null;
    ICache<String, Properties> messagesCache = null;
   
    final ICacheManager cacheManager = arguments.getConfiguration().getCacheManager();
    if (cacheManager != null) {
      messagesCache = cacheManager.getMessageCache();
      if (messagesCache != null) {
        properties = messagesCache.get(cacheKey);
      }
    }
View Full Code Here

Examples of org.thymeleaf.cache.ICacheManager

    public final List<Node> extractFragment(final Configuration configuration, final List<Node> nodes) {

        DOMSelector selector = null;
        ICache<String,Object> expressionCache = null;
       
        final ICacheManager cacheManager = configuration.getCacheManager();
        if (cacheManager != null) {
            expressionCache = cacheManager.getExpressionCache();
            if (expressionCache != null) {
                selector = (DOMSelector) expressionCache.get(this.domSelectorCacheKey);
            }
        }
       
View Full Code Here

Examples of org.thymeleaf.cache.ICacheManager

        final String cacheKey = CLASS_CACHE_PREFIX + className + "_" + locale.toString();
       
        ICache<String,Properties> messagesCache = null;
        Properties properties = null;
       
        final ICacheManager cacheManager = configuration.getCacheManager();
        if (cacheManager != null) {
            messagesCache = cacheManager.getMessageCache();
            if (messagesCache != null) {
                properties = messagesCache.get(cacheKey);
            }
        }
       
View Full Code Here

Examples of org.thymeleaf.cache.ICacheManager

        final String cacheKey = TEMPLATE_CACHE_PREFIX + templateName + '_' + locale.toString();

        Properties properties = null;
        ICache<String,Properties> messagesCache = null;
       
        final ICacheManager cacheManager = arguments.getConfiguration().getCacheManager();
        if (cacheManager != null) {
            messagesCache = cacheManager.getMessageCache();
            if (messagesCache != null) {
                properties = messagesCache.get(cacheKey);
            }
        }
       
View Full Code Here

Examples of org.thymeleaf.cache.ICacheManager

    public final List<Node> extractFragment(final Configuration configuration, final List<Node> nodes) {

        DOMSelector selector = null;
        ICache<String,Object> expressionCache = null;
       
        final ICacheManager cacheManager = configuration.getCacheManager();
        if (cacheManager != null) {
            expressionCache = cacheManager.getExpressionCache();
            if (expressionCache != null) {
                selector = (DOMSelector) expressionCache.get(this.domSelectorCacheKey);
            }
        }
       
View Full Code Here

Examples of org.thymeleaf.cache.ICacheManager

           
            Object expressionTree = null;
            ICache<String, Object> cache = null;
           
            if (configuration != null) {
                final ICacheManager cacheManager = configuration.getCacheManager();
                if (cacheManager != null) {
                    cache = cacheManager.getExpressionCache();
                    if (cache != null) {
                        expressionTree = cache.get(OGNL_CACHE_PREFIX + expression);
                    }
                }
            }
View Full Code Here

Examples of org.thymeleaf.cache.ICacheManager

       
        super();
       
        Validate.notNull(configuration, "Configuration object cannot be null");
       
        final ICacheManager cacheManager = configuration.getCacheManager();
        if (cacheManager == null) {
            this.templateCache = null;
            this.fragmentCache = null;
        } else {
            this.templateCache = cacheManager.getTemplateCache();
            this.fragmentCache = cacheManager.getFragmentCache();
        }
           
        this.parsersByTemplateMode = new HashMap<String,ITemplateParser>(10, 1.0f);
        for (final ITemplateModeHandler handler : configuration.getTemplateModeHandlers()) {
            this.parsersByTemplateMode.put(handler.getTemplateModeName(), handler.getTemplateParser());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.