public class ServiceArtefactHandler extends ArtefactHandlerAdapter
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PLUGIN_NAME |
static java.lang.String |
TYPE |
Constructor and Description |
---|
ServiceArtefactHandler() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getPluginName()
Obtains the plugin name that deals with this artefact.
|
boolean |
isArtefactClass(java.lang.Class clazz)
Checks that class's name ends in the suffix specified for this handler.
|
getArtefactForFeature, getType, initialize, isArtefact, isArtefactGrailsClass, newArtefactClass
public static final java.lang.String TYPE
public static final java.lang.String PLUGIN_NAME
public java.lang.String getPluginName()
ArtefactHandler
getPluginName
in interface ArtefactHandler
getPluginName
in class ArtefactHandlerAdapter
public boolean isArtefactClass(java.lang.Class clazz)
ArtefactHandlerAdapter
Checks that class's name ends in the suffix specified for this handler.
Override for more complex criteria
isArtefactClass
in class ArtefactHandlerAdapter
clazz
- The class to check