public class MappedControllerDatabase extends Object implements ControllerDatabase
KEY| Constructor and Description |
|---|
MappedControllerDatabase(Set<Class<?>> controllerClasses,
RouteMap routeMap)
Construct a controller database based on the given Set of controller
Classes.
|
| 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.
|
public RouteMap getRouteMap()
getRouteMap in interface ControllerDatabasepublic Class<?> getControllerClass(String controllerVariable)
getControllerClass in interface ControllerDatabasecontrollerVariable - public ActionSignature getActionMethodSignature(Class<?> controllerClass, String action)
getActionMethodSignature in interface ControllerDatabasecontrollerClass - the controller classaction - the request actionpublic ActionSignature getBeforeActionMethodFor(Class<?> controllerClass)
getBeforeActionMethodFor in interface ControllerDatabasecontrollerClass - the controller classpublic ActionSignature getAfterActionMethodFor(Class<?> controllerClass)
getAfterActionMethodFor in interface ControllerDatabasecontrollerClass - the controller classpublic ActionSignature getDefaultActionMethodFor(Class<?> controllerClass)
getDefaultActionMethodFor in interface ControllerDatabasecontrollerClass - the controller classpublic ActionSignature getAfterConstructMethodFor(Class<?> controllerClass)
getAfterConstructMethodFor in interface ControllerDatabasecontrollerClass - the controller classpublic Set<Class<?>> getInitControllers()
getInitControllers in interface ControllerDatabasepublic List<Class<?>> getInterceptorsFor(Class<?> controllerClass)
getInterceptorsFor in interface ControllerDatabasecontrollerClass - the controller classpublic ActionSignature getAfterActionMethodForInterceptor(Class<?> interceptorClass)
getAfterActionMethodForInterceptor in interface ControllerDatabaseinterceptorClass - the interceptor classpublic ActionSignature getBeforeActionMethodForInterceptor(Class<?> interceptorClass)
getBeforeActionMethodForInterceptor in interface ControllerDatabaseinterceptorClass - the interceptor classpublic Class<?> getDefaultControllerClass()
getDefaultControllerClass in interface ControllerDatabasepublic List<Class<?>> getInterceptorsForAction(Class<?> controllerClass, String action)
getInterceptorsForAction in interface ControllerDatabasecontrollerClass - the controller classaction - the action being invoked in the requestpublic List<Class<?>> getInterceptorsForDefaultAction(Class<?> controllerClass)
getInterceptorsForDefaultAction in interface ControllerDatabasecontrollerClass - the controller classpublic List<Class<?>> getInterceptorsForHttpMethodAction(Class<?> controllerClass, HttpMethod httpMethod)
getInterceptorsForHttpMethodAction in interface ControllerDatabasecontrollerClass - the controller classhttpMethod - the HTTP method being invoked in the requestpublic net.sf.cglib.reflect.FastClass getFastClass(Class<?> clazz)
getFastClass in interface ControllerDatabaseclazz - the controller or interceptor classpublic ActionSignature getHttpMethodActionSignature(Class<?> controllerClass, HttpMethod httpMethod)
getHttpMethodActionSignature in interface ControllerDatabasecontrollerClass - the controller classhttpMethod - the HTTP methodCopyright © 2011-2012 MojaveMVC.org