public class RootAnnotationHandler extends Object implements AnnotationHandler
| Constructor and Description |
|---|
RootAnnotationHandler(AnnotationResourceFactory outer) |
| Modifier and Type | Method and Description |
|---|---|
Object |
execute(String host) |
Class |
getAnnoClass()
Get the annotation class that this handler handles
|
List<ControllerMethod> |
getControllerMethods()
List the methods found when parsing annotations on the controller
|
Request.Method[] |
getSupportedMethods()
Return any HTTP methods which this annotation handler supports
|
boolean |
isCompatible(Object source)
Determine if this handler is able to support the given source object, ie
if there is a controller method registered in this handler that supports
the given source type
|
void |
parseController(Object controller)
Called on initialisation, the handler should look for annotations on the
controller object and prepare itself to use them
|
public RootAnnotationHandler(AnnotationResourceFactory outer)
public void parseController(Object controller)
AnnotationHandlerparseController in interface AnnotationHandlerpublic Request.Method[] getSupportedMethods()
AnnotationHandlergetSupportedMethods in interface AnnotationHandlerpublic boolean isCompatible(Object source)
AnnotationHandlerisCompatible in interface AnnotationHandlerpublic List<ControllerMethod> getControllerMethods()
AnnotationHandlergetControllerMethods in interface AnnotationHandlerpublic Class getAnnoClass()
AnnotationHandlergetAnnoClass in interface AnnotationHandlerCopyright © 2021 McEvoy Software Ltd. All rights reserved.