Esempio n. 1
0
  private void init() {
    if (cacheConfiguration == null) {
      return;
    }
    CacheConfigurationElement.addCommonAttributesWithDefaultCache(this, cacheConfiguration);

    CacheConfigurationElement.addCommonChildElementsWithDefaultCache(this, cacheConfiguration);
  }
Esempio n. 2
0
  private void init() {
    if (cacheConfiguration == null) {
      return;
    }
    addAttribute(new SimpleNodeAttribute("name", cacheConfiguration.getName()).optional(false));
    addCommonAttributesWithDefaultCache(this, cacheConfiguration);
    addAttribute(
        new SimpleNodeAttribute("logging", cacheConfiguration.getLogging())
            .optional(true)
            .defaultValue(CacheConfiguration.DEFAULT_LOGGING));

    addCommonChildElementsWithDefaultCache(this, cacheConfiguration);
  }