org.qi4j.library.struts2.support
Class ProvidesEntityOfMixin<T>

java.lang.Object
  extended by org.qi4j.library.struts2.support.ProvidesEntityOfMixin<T>
All Implemented Interfaces:
com.opensymphony.xwork2.Action, com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, com.opensymphony.xwork2.ValidationAware, ProvidesEntityOf<T>, StrutsAction
Direct Known Subclasses:
ProvidesEditingOfMixin, ProvidesViewOfMixin

public abstract class ProvidesEntityOfMixin<T>
extends Object
implements ProvidesEntityOf<T>, StrutsAction


Field Summary
 
Fields inherited from interface com.opensymphony.xwork2.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
ProvidesEntityOfMixin()
           
 
Method Summary
 T getEntity()
           
 String getId()
           
protected  void loadEntity()
           
 void setId(String id)
           
protected  Class<T> typeToLoad()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.opensymphony.xwork2.Action
execute
 
Methods inherited from interface com.opensymphony.xwork2.Validateable
validate
 
Methods inherited from interface com.opensymphony.xwork2.ValidationAware
addActionError, addActionMessage, addFieldError, getActionErrors, getActionMessages, getFieldErrors, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, setActionErrors, setActionMessages, setFieldErrors
 
Methods inherited from interface com.opensymphony.xwork2.TextProvider
getText, getText, getText, getText, getText, getText, getText, getText, getText, getTexts, getTexts, hasKey
 
Methods inherited from interface com.opensymphony.xwork2.LocaleProvider
getLocale
 

Constructor Detail

ProvidesEntityOfMixin

public ProvidesEntityOfMixin()
Method Detail

getId

public String getId()
Specified by:
getId in interface ProvidesEntityOf<T>

setId

public void setId(String id)
Specified by:
setId in interface ProvidesEntityOf<T>

getEntity

public T getEntity()
Specified by:
getEntity in interface ProvidesEntityOf<T>

loadEntity

protected void loadEntity()

typeToLoad

protected Class<T> typeToLoad()