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
Modifier and TypeClassDescriptionstatic enum
Controller output handling types. -
Field Summary
-
Constructor Summary
ConstructorDescriptionControllerComponent
(Object instance) Creates the controller profile for aController
class. -
Method Summary
Modifier and TypeMethodDescriptionClass<?>[]
getPath()
protected void
scanMethod
(Method method) Called to handle a single method scan for this component type.Methods inherited from class com.blackrook.small.dispatch.DispatchComponent
getAttributeConstructor, getModelConstructor, getPartData
Methods inherited from class com.blackrook.small.SmallComponent
getInstance, toString
-
Field Details
-
NO_FILTERS
-
-
Constructor Details
-
ControllerComponent
Creates the controller profile for aController
class.- 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:SmallComponent
Called to handle a single method scan for this component type. If this method is overridden, it would be wise to callsuper.scanMethod(m)
.- Overrides:
scanMethod
in classDispatchComponent
- Parameters:
method
- the method to inspect.
-