public class ArtefactHandlerAdapter extends java.lang.Object
Modifiers | Name | Description |
---|---|---|
protected org.apache.commons.logging.Log |
log |
Constructor and description |
---|
ArtefactHandlerAdapter
(java.lang.String type, java.lang.Class<?> grailsClassType, java.lang.Class<?> grailsClassImpl, java.lang.String artefactSuffix) |
ArtefactHandlerAdapter
(java.lang.String type, java.lang.Class<?> grailsClassType, java.lang.Class<?> grailsClassImpl, java.lang.String artefactSuffix, boolean allowAbstract) |
Type | Name and description |
---|---|
GrailsClass |
getArtefactForFeature(java.lang.Object feature) |
java.lang.String |
getPluginName() |
java.lang.String |
getType() |
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 |
isArtefact(java.lang.Class aClass) |
boolean |
isArtefactClass(java.lang.Class clazz) |
boolean |
isArtefactGrailsClass(GrailsClass artefactGrailsClass) |
GrailsClass |
newArtefactClass(java.lang.Class artefactClass) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Sets up the relationships between the domain classes, this has to be done after the intial creation to avoid looping.
Checks that class's name ends in the suffix specified for this handler.
Override for more complex criteria
clazz
- The class to check
Creates new GrailsClass derived object using the type supplied in constructor. May not perform optimally but is a convenience.
artefactClass
- Creates a new artefact for the given class