org.ehcache.config.xml.model
Class ConfigType

java.lang.Object
  extended by org.ehcache.config.xml.model.ConfigType

public class ConfigType
extends java.lang.Object

Java class for config-type complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="config-type">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="service" type="{http://www.ehcache.org/v3}service-type" maxOccurs="unbounded" minOccurs="0"/>
         <choice maxOccurs="unbounded" minOccurs="0">
           <element name="cache" type="{http://www.ehcache.org/v3}cache-type"/>
           <element name="cache-template" type="{http://www.ehcache.org/v3}cacheTemplate-type"/>
         </choice>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 


Field Summary
protected  java.util.List<BaseCacheType> cacheOrCacheTemplate
           
protected  java.util.List<ServiceType> service
           
 
Constructor Summary
ConfigType()
           
 
Method Summary
 java.util.List<BaseCacheType> getCacheOrCacheTemplate()
          Gets the value of the cacheOrCacheTemplate property.
 java.util.List<ServiceType> getService()
          Gets the value of the service property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

service

protected java.util.List<ServiceType> service

cacheOrCacheTemplate

protected java.util.List<BaseCacheType> cacheOrCacheTemplate
Constructor Detail

ConfigType

public ConfigType()
Method Detail

getService

public java.util.List<ServiceType> getService()
Gets the value of the service property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the service property.

For example, to add a new item, do as follows:

    getService().add(newItem);
 

Objects of the following type(s) are allowed in the list ServiceType


getCacheOrCacheTemplate

public java.util.List<BaseCacheType> getCacheOrCacheTemplate()
Gets the value of the cacheOrCacheTemplate property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the cacheOrCacheTemplate property.

For example, to add a new item, do as follows:

    getCacheOrCacheTemplate().add(newItem);
 

Objects of the following type(s) are allowed in the list CacheType CacheTemplateType