net.sf.sido.spring.mvc
Class AbstractSiDOArgumentResolver

java.lang.Object
  extended by net.sf.sido.spring.mvc.AbstractSiDOArgumentResolver
All Implemented Interfaces:
org.springframework.web.bind.support.WebArgumentResolver
Direct Known Subclasses:
DataObjectArgumentResolver, DOObjectArgumentResolver

public abstract class AbstractSiDOArgumentResolver
extends Object
implements org.springframework.web.bind.support.WebArgumentResolver


Field Summary
 
Fields inherited from interface org.springframework.web.bind.support.WebArgumentResolver
UNRESOLVED
 
Constructor Summary
AbstractSiDOArgumentResolver()
           
 
Method Summary
protected abstract  void check(DataObject o, org.springframework.core.MethodParameter methodParameter)
           
protected abstract  DataFactory getDataFactory()
           
protected abstract  String getExpectedDataTypeName(org.springframework.core.MethodParameter methodParameter, org.springframework.web.context.request.NativeWebRequest webRequest, boolean typeRequired)
           
protected  DataType getType(org.springframework.core.MethodParameter methodParameter, org.springframework.web.context.request.NativeWebRequest webRequest, boolean typeRequired)
           
protected  DataType getTypeFromName(String dataTypeName)
           
protected abstract  void init(DataObject o, org.springframework.core.MethodParameter methodParameter)
           
 Object resolveArgument(org.springframework.core.MethodParameter methodParameter, org.springframework.web.context.request.NativeWebRequest webRequest)
           
protected
<T> DataObject
resolveArgumentFromInputStream(org.springframework.core.MethodParameter methodParameter, org.springframework.web.context.request.NativeWebRequest webRequest, DataObjectReader<T> reader)
           
protected  DataObject resolveArgumentFromParameters(org.springframework.core.MethodParameter methodParameter, org.springframework.web.context.request.NativeWebRequest webRequest)
           
protected  DataObject resolveInternal(org.springframework.core.MethodParameter methodParameter, org.springframework.web.context.request.NativeWebRequest webRequest)
           
protected abstract  boolean supportsParameterType(Class<?> parameterType)
           
protected abstract  Object transform(DataObject dataObject, org.springframework.core.MethodParameter methodParameter, org.springframework.web.context.request.NativeWebRequest webRequest)
           
protected  void validate(DataObject o, org.springframework.core.MethodParameter methodParameter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractSiDOArgumentResolver

public AbstractSiDOArgumentResolver()
Method Detail

resolveArgument

public Object resolveArgument(org.springframework.core.MethodParameter methodParameter,
                              org.springframework.web.context.request.NativeWebRequest webRequest)
                       throws Exception
Specified by:
resolveArgument in interface org.springframework.web.bind.support.WebArgumentResolver
Throws:
Exception

transform

protected abstract Object transform(DataObject dataObject,
                                    org.springframework.core.MethodParameter methodParameter,
                                    org.springframework.web.context.request.NativeWebRequest webRequest)

resolveInternal

protected DataObject resolveInternal(org.springframework.core.MethodParameter methodParameter,
                                     org.springframework.web.context.request.NativeWebRequest webRequest)
                              throws Exception
Throws:
Exception

resolveArgumentFromInputStream

protected <T> DataObject resolveArgumentFromInputStream(org.springframework.core.MethodParameter methodParameter,
                                                        org.springframework.web.context.request.NativeWebRequest webRequest,
                                                        DataObjectReader<T> reader)
                                             throws Exception
Throws:
Exception

resolveArgumentFromParameters

protected DataObject resolveArgumentFromParameters(org.springframework.core.MethodParameter methodParameter,
                                                   org.springframework.web.context.request.NativeWebRequest webRequest)
                                            throws Exception
Throws:
Exception

init

protected abstract void init(DataObject o,
                             org.springframework.core.MethodParameter methodParameter)

check

protected abstract void check(DataObject o,
                              org.springframework.core.MethodParameter methodParameter)

validate

protected void validate(DataObject o,
                        org.springframework.core.MethodParameter methodParameter)

getType

protected DataType getType(org.springframework.core.MethodParameter methodParameter,
                           org.springframework.web.context.request.NativeWebRequest webRequest,
                           boolean typeRequired)
                    throws Exception
Throws:
Exception

getTypeFromName

protected DataType getTypeFromName(String dataTypeName)

getExpectedDataTypeName

protected abstract String getExpectedDataTypeName(org.springframework.core.MethodParameter methodParameter,
                                                  org.springframework.web.context.request.NativeWebRequest webRequest,
                                                  boolean typeRequired)
                                           throws Exception
Throws:
Exception

getDataFactory

protected abstract DataFactory getDataFactory()

supportsParameterType

protected abstract boolean supportsParameterType(Class<?> parameterType)


Copyright © 2011. All Rights Reserved.