@CompileStatic abstract class AbstractServiceImplementer extends Object implements Ordered, PrefixedServiceImplementer
Abstract implementation of the ServiceImplementer interface
| Constructor and description |
|---|
AbstractServiceImplementer() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
protected Expression |
buildInstanceApiLookup(ClassNode domainClass, Expression connectionId) |
|
protected Expression |
buildStaticApiLookup(ClassNode domainClass, Expression connectionId) |
|
protected void |
copyClassAnnotations(MethodNode abstractMethod, MethodNode impl)Copies annotation from the abstract method to the implementation method |
|
protected Expression |
datastore()
|
|
boolean |
doesImplement(ClassNode domainClass, MethodNode methodNode) |
|
protected Expression |
findConnectionId(MethodNode methodNode) |
|
protected Expression |
findInstanceApiForConnectionId(ClassNode domainClass, MethodNode methodNode) |
|
protected Expression |
findStaticApiForConnectionId(ClassNode domainClass, MethodNode methodNode) |
|
int |
getOrder() |
|
protected abstract boolean |
isCompatibleReturnType(ClassNode domainClass, MethodNode methodNode, ClassNode returnType, String prefix)Return true if the provided return type is compatible with this implementor. |
|
protected boolean |
isValidParameter(ClassNode domainClassNode, Parameter parameter, String parameterName)Check whether the given parameter is a valid property of the domain class |
|
protected Expression |
multiTenantDatastore()
|
|
String |
resolvePrefix(MethodNode mn) |
|
protected Expression |
tenantService()
|
|
protected Expression |
transactionService()
|
|
protected Expression |
transactionalDatastore()
|
Copies annotation from the abstract method to the implementation method
abstractMethod - the abstract methodimpl - the implementation method
Return true if the provided return type is compatible with this implementor.
domainClass - The domain class this method applies tomethodNode - The methodreturnType - The return typeCheck whether the given parameter is a valid property of the domain class
domainClassNode - The domain classparameter - The parameterparameterName - The parameter name