info.magnolia.commands
Class CommandTransformer
java.lang.Object
info.magnolia.content2bean.impl.Content2BeanTransformerImpl
info.magnolia.commands.CommandTransformer
- All Implemented Interfaces:
- Content.ContentFilter, Content2BeanTransformer
public class CommandTransformer
- extends Content2BeanTransformerImpl
Command to transform old "impl" reference to implementing class to new "class" node data name for references.
- Version:
- $Revision: $ ($Author: $)
- Author:
- gjoseph
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CommandTransformer
public CommandTransformer()
onResolveType
protected TypeDescriptor onResolveType(TypeMapping typeMapping,
TransformationState state,
TypeDescriptor resolvedType,
ComponentProvider componentProvider)
- Description copied from class:
Content2BeanTransformerImpl
- Called once the type should have been resolved. The resolvedType might be null if no type has been resolved.
After the call the FactoryUtil and custom transformers are used to get the final type. TODO - check javadoc
- Overrides:
onResolveType
in class Content2BeanTransformerImpl
initBean
public void initBean(TransformationState state,
Map values)
throws Content2BeanException
- Description copied from class:
Content2BeanTransformerImpl
- Initializes bean by calling its init method if present.
- Specified by:
initBean
in interface Content2BeanTransformer
- Overrides:
initBean
in class Content2BeanTransformerImpl
- Throws:
Content2BeanException
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
isCommandClass
protected boolean isCommandClass(Class<?> type)
isChainClass
protected boolean isChainClass(Class<?> type)
Copyright © 2003–2014 Magnolia International Ltd.. All rights reserved.