Class ControllerComponent
java.lang.Object
com.blackrook.small.SmallComponent
com.blackrook.small.dispatch.DispatchComponent
com.blackrook.small.dispatch.controller.ControllerComponent
Creates a controller profile to assist in re-calling controllers by path and methods.
- Author:
- Matthew Tropiano
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumController output handling types. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionControllerComponent(Object instance) Creates the controller profile for aControllerclass. -
Method Summary
Modifier and TypeMethodDescriptionClass<?>[]getPath()protected voidscanMethod(Method method) Called to handle a single method scan for this component type.Methods inherited from class com.blackrook.small.dispatch.DispatchComponent
getAttributeConstructor, getModelConstructor, getPartDataMethods inherited from class com.blackrook.small.SmallComponent
getInstance, toString
-
Field Details
-
NO_FILTERS
-
-
Constructor Details
-
ControllerComponent
Creates the controller profile for aControllerclass.- Parameters:
instance- the input class to profile.- Throws:
SmallFrameworkException- if this profile cannot be created due to an initialization problem.
-
-
Method Details
-
getPath
- Returns:
- the base path for this controller.
-
getFilterChain
- Returns:
- the list of filter classes to call.
-
getEntryMethods
- Returns:
- the entry points on this controller.
-
scanMethod
Description copied from class:SmallComponentCalled to handle a single method scan for this component type. If this method is overridden, it would be wise to callsuper.scanMethod(m).- Overrides:
scanMethodin classDispatchComponent- Parameters:
method- the method to inspect.
-