org.shept.org.springframework.web.servlet.mvc.delegation.command
Class AssociationCommandFactory

java.lang.Object
  extended by org.shept.org.springframework.web.servlet.mvc.delegation.command.AbstractCommandFactory
      extended by 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
           
 
Constructor Summary
AssociationCommandFactory()
           
 
Method Summary
protected  ReloadableAssociation createFilter(TargetConfiguration cc, Method mth, Object model)
           
protected  Object createWrappedEntity(TargetConfiguration config, Method mth, Object model)
           
protected  Object createWrappedList(TargetConfiguration config, Method mth, Object model)
           
 Object getCommand(TargetConfiguration config, Object model)
           
 ModelCreation getNewModelTemplate(Class<?> clazz, Object model)
           
 void setRelation(String relation)
           
 
Methods inherited from class org.shept.org.springframework.web.servlet.mvc.delegation.command.AbstractCommandFactory
afterPropertiesSet, getApplicationContext, getCommand, getCommand, getPageHolderFactory, setApplicationContext, setPageHolderFactory
 
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
 

Field Detail

logger

protected final org.apache.commons.logging.Log logger
Logger that is available to subclasses


relation

private String relation
Constructor Detail

AssociationCommandFactory

public AssociationCommandFactory()
Method Detail

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.