info.magnolia.module.cache.ehcache
Class CacheConfigurationTransformer

java.lang.Object
  extended by info.magnolia.content2bean.impl.Content2BeanTransformerImpl
      extended by info.magnolia.module.cache.ehcache.CacheConfigurationTransformer
All Implemented Interfaces:
Content.ContentFilter, Content2BeanTransformer

public class CacheConfigurationTransformer
extends Content2BeanTransformerImpl

A Content2BeanTransformer for net.ehcache.config.CacheConfiguration, because it does not respect javabeans conventions for setting the MemoryStoreEvictionPolicy. (getter returns a MemoryStoreEvictionPolicy, setter takes a String as argument)

Version:
$Revision: $ ($Author: $)
Author:
gjoseph

Nested Class Summary
 
Nested classes/interfaces inherited from interface info.magnolia.content2bean.Content2BeanTransformer
Content2BeanTransformer.Factory
 
Constructor Summary
CacheConfigurationTransformer()
           
 
Method Summary
 void setProperty(TypeMapping typeMapping, TransformationState state, PropertyTypeDescriptor descriptor, Map values)
          Do not set class property.
 
Methods inherited from class info.magnolia.content2bean.impl.Content2BeanTransformerImpl
accept, convertPropertyValue, getChildren, getTypeMapping, initBean, newBeanInstance, newState, onResolveType, onResolveType, resolveType, resolveType, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheConfigurationTransformer

public CacheConfigurationTransformer()
Method Detail

setProperty

public void setProperty(TypeMapping typeMapping,
                        TransformationState state,
                        PropertyTypeDescriptor descriptor,
                        Map values)
Description copied from class: Content2BeanTransformerImpl
Do not set class property. In case of a map/collection try to use adder method.

Specified by:
setProperty in interface Content2BeanTransformer
Overrides:
setProperty in class Content2BeanTransformerImpl


Copyright © 2003-2013 Magnolia International Ltd.. All Rights Reserved.