Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.github.edgarespina.mwa.view;
 
 
Base class for ModelContribution.

Author(s):
edgar.espina
Since:
0.1.0
public abstract class AbstractModelContribution implements ModelContribution,
    EnvironmentAware {

  
True for enabled the cache. Default is: false.
  private Boolean useCache;

  
The logging system.
  protected final Logger logger = LoggerFactory.getLogger(getClass());

  
  public final void setUseCache(final boolean cache) {
    this. = cache;
  }

  
Set the use cache flag if it's not been set before.
  public void setEnvironment(final Environment environment) {
    if ( == null) {
       =
          !..matches(environment
              .getProperty(.));
    }
  }

  
True if cache is enabled. Default is: false.

Returns:
True if cache is enabled. Default is: false.
  public final boolean useCache() {
    return  == null ? . : ;
  }
New to GrepCode? Check out our FAQ X