Class SpringMvcArguments
java.lang.Object
net.officefloor.spring.starter.rest.argument.SpringMvcArguments
- All Implemented Interfaces:
ServiceFactory<SpringArguments>,SpringArguments,SpringArgumentsServiceFactory
public class SpringMvcArguments
extends Object
implements SpringArguments, SpringArgumentsServiceFactory
SpringArguments for MVC.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceDetermines if a Spring argument. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateService(ServiceContext context) Creates the service.Class<?>[]getArgumentAnnotationTypes(SourceContext context) Listing of annotation types for Spring arguments.Class<?>[]getArgumentTypes(SourceContext context) Listing of types for Spring arguments.Obtains the Spring argument annotation types.getSpringArgumentChecker(SourceContext context) Obtains theSpringMvcArguments.SpringArgumentChecker.getSpringArgumentTypes(SourceContext context) Obtains the Spring argument types.
-
Field Details
-
AUTHENTICATION_PRINCIPAL_CLASS_NAME
Spring Security AuthenticationPrincipal class name. -
AUTHENTICATION_CLASS_NAME
Spring Security Authentication class name.
-
-
Constructor Details
-
SpringMvcArguments
public SpringMvcArguments()
-
-
Method Details
-
getSpringArgumentAnnotationTypes
Obtains the Spring argument annotation types.- Parameters:
context-SourceContext.- Returns:
- Spring argument annotation types.
-
getSpringArgumentTypes
Obtains the Spring argument types.- Parameters:
context-SourceContext.- Returns:
- Spring argument types.
-
getSpringArgumentChecker
public static SpringMvcArguments.SpringArgumentChecker getSpringArgumentChecker(SourceContext context) Obtains theSpringMvcArguments.SpringArgumentChecker.- Parameters:
context-SourceContext.- Returns:
SpringMvcArguments.SpringArgumentChecker.
-
createService
Description copied from interface:ServiceFactoryCreates the service.- Specified by:
createServicein interfaceServiceFactory<SpringArguments>- Parameters:
context-ServiceContext.- Returns:
- Service.
- Throws:
Throwable- If fails to create the service.
-
getArgumentAnnotationTypes
Description copied from interface:SpringArgumentsListing of annotation types for Spring arguments.- Specified by:
getArgumentAnnotationTypesin interfaceSpringArguments- Parameters:
context-SourceContext.- Returns:
- Annotation types for Spring arguments.
-
getArgumentTypes
Description copied from interface:SpringArgumentsListing of types for Spring arguments.- Specified by:
getArgumentTypesin interfaceSpringArguments- Parameters:
context-SourceContext.- Returns:
- Types for Spring arguments.
-