Spring configuration provider for the JsonCommandServlet. This provider will find controllers using AppCtx.getBean(), locating controller by name. It will then invoke the request method with the requested arguments on the controller. All appropriate error handling is performed.
Modifiers | Name | Description |
---|---|---|
private static org.apache.logging.log4j.Logger |
LOG |
|
private org.springframework.context.ApplicationContext |
springAppCtx |
Fields inherited from class | Fields |
---|---|
class ConfigurationProvider |
LOG, cmdUrlPattern, cmdUrlPattern2, methodMap, servletConfig |
Constructor and description |
---|
SpringConfigurationProvider
(javax.servlet.ServletConfig servletConfig) |
Type | Name and description |
---|---|
protected java.lang.Object |
getController(java.lang.String name) @param name String name of a Controller instance (Spring bean name, n-cube name, etc). |
protected java.lang.String |
getLogPrefix() @return String 'spring' to indicate that a Spring controller was used. |
protected boolean |
isMethodAllowed(java.lang.String methodName) All controller methods are allowed by default. |
Methods inherited from class | Name |
---|---|
class ConfigurationProvider |
arrayBuilder, callController, callMethod, convertArgs, getArguments, getController, getLogPrefix, getMethod, getMethod, getServletConfig, getUrlMatcher, isMethodAllowed |
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
name
- String name of a Controller instance (Spring bean name, n-cube name, etc).
All controller methods are allowed by default. They can be turned off by making them either not public -or- using the annotation @ControllerMethod(allow = false)}
methodName
- String method name to check.