|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.codehaus.groovy.grails.commons.ArtefactHandlerAdapter org.codehaus.groovy.grails.commons.DomainClassArtefactHandler
public class DomainClassArtefactHandler extends ArtefactHandlerAdapter
Evaluates the conventions that define a domain class in Grails.
Field Summary | |
---|---|
static java.lang.String |
TYPE
|
Fields inherited from class ArtefactHandlerAdapter | |
---|---|
log |
Constructor Summary | |
DomainClassArtefactHandler()
|
Method Summary | |
---|---|
java.util.Map
|
getDefaultConstraints()
|
void
|
initialize(ArtefactInfo artefacts)
Sets up the relationships between the domain classes, this has to be done after the intial creation to avoid looping |
boolean
|
isArtefactClass(java.lang.Class clazz)
|
static boolean
|
isDomainClass(java.lang.Class clazz)
|
GrailsClass
|
newArtefactClass(java.lang.Class artefactClass)
|
void
|
setConfiguration(groovy.util.ConfigObject co)
|
Methods inherited from class ArtefactHandlerAdapter | |
---|---|
getArtefactForFeature, getPluginName, getType, initialize, isArtefact, isArtefactClass, isArtefactGrailsClass, newArtefactClass |
Field Detail |
---|
public static final java.lang.String TYPE
Constructor Detail |
---|
public DomainClassArtefactHandler()
Method Detail |
---|
@SuppressWarnings("rawtypes") public java.util.Map getDefaultConstraints()
@Override public void initialize(ArtefactInfo artefacts)
@Override @SuppressWarnings("rawtypes") public boolean isArtefactClass(java.lang.Class clazz)
@SuppressWarnings({ "unchecked", "rawtypes" }) public static boolean isDomainClass(java.lang.Class clazz)
@Override @SuppressWarnings({ "unchecked", "rawtypes" }) public GrailsClass newArtefactClass(java.lang.Class artefactClass)
public void setConfiguration(groovy.util.ConfigObject co)
Groovy Documentation