org.shept.org.springframework.web.servlet.mvc.delegation.command
Class AssociationCommandFactory
java.lang.Object
org.shept.org.springframework.web.servlet.mvc.delegation.command.AbstractCommandFactory
org.shept.org.springframework.web.servlet.mvc.delegation.command.AssociationCommandFactory
- All Implemented Interfaces:
- CommandFactory, TargetCommandFactory, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware
public class AssociationCommandFactory
- extends AbstractCommandFactory
- implements CommandFactory
- Author:
- Andreas Hahn
|
Field Summary |
protected org.apache.commons.logging.Log |
logger
Logger that is available to subclasses |
private String |
relation
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.shept.org.springframework.web.servlet.mvc.delegation.command.CommandFactory |
getCommand |
logger
protected final org.apache.commons.logging.Log logger
- Logger that is available to subclasses
relation
private String relation
AssociationCommandFactory
public AssociationCommandFactory()
getCommand
public Object getCommand(TargetConfiguration config,
Object model)
- Specified by:
getCommand in interface TargetCommandFactory- Specified by:
getCommand in class AbstractCommandFactory
- Parameters:
model - jp - mth -
- Returns:
- See Also:
org.shept.org.springframework.web.servlet.mvc.delegation.command.CommandFactory#getCommand(org.shept.org.springframework.web.servlet.mvc.delegation.ComponentConfiguration, java.lang.Object, java.lang.String)
createWrappedEntity
protected Object createWrappedEntity(TargetConfiguration config,
Method mth,
Object model)
- Parameters:
mth - model - -
- Returns:
createWrappedList
protected Object createWrappedList(TargetConfiguration config,
Method mth,
Object model)
- Parameters:
cw - mth - model - -
- Returns:
createFilter
protected ReloadableAssociation createFilter(TargetConfiguration cc,
Method mth,
Object model)
- Parameters:
cc - mth - model - newTemplate -
- Returns:
getNewModelTemplate
public ModelCreation getNewModelTemplate(Class<?> clazz,
Object model)
- Returns:
- the newModelTemplate if any
setRelation
public void setRelation(String relation)
- Parameters:
relation - the relation to set
Copyright © 2011. All Rights Reserved.