public interface ControllerDatabase
Modifier and Type | Method and Description |
---|---|
ActionSignature |
getActionMethodSignature(Class<?> controllerClass,
String action)
Get the ActionSignature associated with the given controller class.
|
ActionSignature |
getAfterActionMethodFor(Class<?> controllerClass)
Get the ActionSignature annotated with @AfterAction for the given
controller class.
|
ActionSignature |
getAfterActionMethodForInterceptor(Class<?> interceptorClass)
Get the ActionSignature annotated with @AfterAction for the given
interceptor class.
|
ActionSignature |
getAfterConstructMethodFor(Class<?> controllerClass)
Get the ActionSignature annotated with @AfterConstruct for the given
controller class.
|
ActionSignature |
getBeforeActionMethodFor(Class<?> controllerClass)
Get the ActionSignature annotated with @BeforeAction for the given
controller class.
|
ActionSignature |
getBeforeActionMethodForInterceptor(Class<?> interceptorClass)
Get the ActionSignature annotated with @BeforeAction for the given
interceptor class.
|
Class<?> |
getControllerClass(String controllerVariable)
Get the controller Class associated with the given controller variable
name.
|
ActionSignature |
getDefaultActionMethodFor(Class<?> controllerClass)
Get the ActionSignature annotated with @DefaultAction for the given
controller class.
|
Class<?> |
getDefaultControllerClass()
Get the default controller for the application, if specified.
|
net.sf.cglib.reflect.FastClass |
getFastClass(Class<?> clazz)
Get the cached FastClass version of the given controller or interceptor
class.
|
ActionSignature |
getHttpMethodActionSignature(Class<?> controllerClass,
HttpMethod httpMethod)
Get the HTTP method ActionSignature associated with the given controller
class.
|
Set<Class<?>> |
getInitControllers()
Get an unmodifiable set of singleton controller classes that are marked
for creation during the FrontController init().
|
List<Class<?>> |
getInterceptorsFor(Class<?> controllerClass)
Get an unmodifiable list of Classes that represent interceptors for the
given class, in the order in which they are declared in the @InterceptedBy
annotation.
|
List<Class<?>> |
getInterceptorsForAction(Class<?> controllerClass,
String action)
Get an unmodifiable list of Classes that represent interceptors for the
given action method in the given class, in the order in which they are
declared in the @InterceptedBy annotation.
|
List<Class<?>> |
getInterceptorsForDefaultAction(Class<?> controllerClass)
Get an unmodifiable list of Classes that represent interceptors for the
default action method in the given class, in the order in which they are
declared in the @InterceptedBy annotation.
|
List<Class<?>> |
getInterceptorsForHttpMethodAction(Class<?> controllerClass,
HttpMethod httpMethod)
Get an unmodifiable list of Classes that represent interceptors for the
given HTTP method action in the given class, in the order in which they
are declared in the @InterceptedBy annotation.
|
RouteMap |
getRouteMap()
Get the RouteMap for the application.
|
static final String KEY
Class<?> getControllerClass(String controllerVariable)
controllerVariable
- ActionSignature getActionMethodSignature(Class<?> controllerClass, String action)
controllerClass
- the controller classaction
- the request actionActionSignature getBeforeActionMethodFor(Class<?> controllerClass)
controllerClass
- the controller classActionSignature getAfterActionMethodFor(Class<?> controllerClass)
controllerClass
- the controller classActionSignature getDefaultActionMethodFor(Class<?> controllerClass)
controllerClass
- the controller classActionSignature getAfterConstructMethodFor(Class<?> controllerClass)
controllerClass
- the controller classSet<Class<?>> getInitControllers()
List<Class<?>> getInterceptorsFor(Class<?> controllerClass)
controllerClass
- the controller classActionSignature getAfterActionMethodForInterceptor(Class<?> interceptorClass)
interceptorClass
- the interceptor classActionSignature getBeforeActionMethodForInterceptor(Class<?> interceptorClass)
interceptorClass
- the interceptor classClass<?> getDefaultControllerClass()
List<Class<?>> getInterceptorsForAction(Class<?> controllerClass, String action)
controllerClass
- the controller classaction
- the action being invoked in the requestList<Class<?>> getInterceptorsForDefaultAction(Class<?> controllerClass)
controllerClass
- the controller classList<Class<?>> getInterceptorsForHttpMethodAction(Class<?> controllerClass, HttpMethod httpMethod)
controllerClass
- the controller classhttpMethod
- the HTTP method being invoked in the requestnet.sf.cglib.reflect.FastClass getFastClass(Class<?> clazz)
clazz
- the controller or interceptor classActionSignature getHttpMethodActionSignature(Class<?> controllerClass, HttpMethod httpMethod)
controllerClass
- the controller classhttpMethod
- the HTTP methodRouteMap getRouteMap()
Copyright © 2011-2012 MojaveMVC.org