public class ChildOfAnnotationHandler extends AbstractAnnotationHandler
| Modifier and Type | Field and Description |
|---|---|
static String |
NOT_ATTEMPTED |
annoClass, annoResourceFactory, methods| Constructor and Description |
|---|
ChildOfAnnotationHandler(AnnotationResourceFactory outer) |
| Modifier and Type | Method and Description |
|---|---|
Object |
execute(AnnoCollectionResource parent,
String childName)
Will return one of: - ChildOfAnnotationHandler.NOT_ATTEMPTED if no
appropriate method was found - null, if a method was available but no
resource was found - or, the child object with the given name wrapped in
an AnnoResource
|
attemptToReadProperty, attemptToSetProperty, getAnnoClass, getControllerMethods, getMethodForType, getSupportedMethods, invoke, isCompatible, parseControllerpublic static final String NOT_ATTEMPTED
public ChildOfAnnotationHandler(AnnotationResourceFactory outer)
public Object execute(AnnoCollectionResource parent, String childName) throws NotAuthorizedException, BadRequestException, NotFoundException
parent - childName - NotAuthorizedExceptionBadRequestExceptionNotFoundExceptionCopyright © 2021 McEvoy Software Ltd. All rights reserved.