public abstract class AbstractRestfulBinder extends Object implements EndpointBinder
Constructor and Description |
---|
AbstractRestfulBinder() |
Modifier and Type | Method and Description |
---|---|
protected void |
addComponentAnnotation(javassist.CtClass proxyClass) |
protected abstract void |
addEndpointMapping(javassist.CtMethod ctMethod,
String method,
String request) |
protected void |
addFSMHarnessReference(javassist.CtClass proxyClass,
String fsmHarnessId,
javassist.ClassPool cp) |
protected javassist.bytecode.annotation.Annotation[] |
addHttpRequestParameter(javassist.CtMethod ctMethod,
javassist.ClassPool cp) |
protected javassist.bytecode.annotation.Annotation[] |
addIdParameter(javassist.CtMethod ctMethod,
Class<?> idType,
javassist.ClassPool cp) |
protected void |
addRequestMethod(javassist.CtClass proxyClass,
Class<?> idType,
boolean isDomainEntity,
String event,
Method method,
javassist.ClassPool cp) |
protected void |
addRequestMethodBody(boolean referencesId,
javassist.CtMethod ctMethod,
String event) |
protected void |
addRequestMethods(javassist.CtClass proxyClass,
Class<?> idType,
boolean isDomainEntity,
Map<String,Method> eventMapping,
javassist.ClassPool cp) |
protected void |
addRequestParameters(boolean referencesId,
Class<?> idType,
boolean isDomainEntity,
javassist.CtMethod ctMethod,
Method method,
javassist.ClassPool cp) |
Class<?> |
bindEndpoints(String beanName,
Class<?> statefulControllerClass,
Class<?> idType,
boolean isDomainEntity,
Map<String,Method> eventMapping,
ReferenceFactory refFactory)
Invoked by the StatefulController to construct an EndpointBinder Class
|
protected javassist.CtClass |
buildProxy(javassist.ClassPool cp,
String beanName,
String proxyClassName,
Class<?> statefulControllerClass,
Class<?> idType,
boolean isDomainEntity,
Map<String,Method> eventMapping,
ReferenceFactory refFactory) |
protected void |
copyParameters(javassist.CtMethod ctMethod,
Method method,
javassist.ClassPool cp) |
protected javassist.bytecode.annotation.Annotation[] |
createParameterAnnotations(String parmName,
javassist.bytecode.MethodInfo methodInfo,
Annotation[] annotations,
javassist.bytecode.ConstPool parameterConstPool) |
protected javassist.CtMethod |
createRequestMethod(javassist.CtClass proxyClass,
String requestMethod,
String requestEvent,
Method method,
javassist.ClassPool cp) |
protected Class<?> |
getComponentClass() |
protected Pattern |
getMethodPattern() |
protected abstract Class<?> |
getPathAnnotationClass() |
protected abstract String |
getSuffix() |
protected org.apache.commons.lang3.tuple.Pair<String,String> |
parseMethod(String event) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getKey
public Class<?> bindEndpoints(String beanName, Class<?> statefulControllerClass, Class<?> idType, boolean isDomainEntity, Map<String,Method> eventMapping, ReferenceFactory refFactory) throws javassist.CannotCompileException, javassist.NotFoundException, IllegalArgumentException, IllegalAccessException, InvocationTargetException
EndpointBinder
bindEndpoints
in interface EndpointBinder
beanName
- The Spring Bean Name for the Endpoint BinderstatefulControllerClass
- The class of the associated StatefulController
idType
- The Class Type of the id field for the associated StatefulEntityisDomainEntity
- A flag indicating the StatefulEntity and the StatefulController
are one in the sameeventMapping
- Association of Event to the Action MethodrefFactory
- The ReferenceFactory
that generates all Spring Bean idsjavassist.CannotCompileException
javassist.NotFoundException
IllegalArgumentException
IllegalAccessException
InvocationTargetException
protected javassist.CtClass buildProxy(javassist.ClassPool cp, String beanName, String proxyClassName, Class<?> statefulControllerClass, Class<?> idType, boolean isDomainEntity, Map<String,Method> eventMapping, ReferenceFactory refFactory) throws javassist.CannotCompileException, javassist.NotFoundException, IllegalArgumentException, IllegalAccessException, InvocationTargetException
javassist.CannotCompileException
javassist.NotFoundException
IllegalArgumentException
IllegalAccessException
InvocationTargetException
protected void addComponentAnnotation(javassist.CtClass proxyClass)
protected void addRequestMethods(javassist.CtClass proxyClass, Class<?> idType, boolean isDomainEntity, Map<String,Method> eventMapping, javassist.ClassPool cp) throws IllegalArgumentException, javassist.NotFoundException, IllegalAccessException, InvocationTargetException, javassist.CannotCompileException
IllegalArgumentException
javassist.NotFoundException
IllegalAccessException
InvocationTargetException
javassist.CannotCompileException
protected javassist.CtMethod createRequestMethod(javassist.CtClass proxyClass, String requestMethod, String requestEvent, Method method, javassist.ClassPool cp) throws javassist.NotFoundException
javassist.NotFoundException
protected void addRequestParameters(boolean referencesId, Class<?> idType, boolean isDomainEntity, javassist.CtMethod ctMethod, Method method, javassist.ClassPool cp) throws javassist.NotFoundException, IllegalArgumentException, IllegalAccessException, InvocationTargetException, javassist.CannotCompileException
javassist.NotFoundException
IllegalArgumentException
IllegalAccessException
InvocationTargetException
javassist.CannotCompileException
protected void copyParameters(javassist.CtMethod ctMethod, Method method, javassist.ClassPool cp) throws javassist.NotFoundException, IllegalArgumentException, IllegalAccessException, InvocationTargetException, javassist.CannotCompileException
javassist.NotFoundException
IllegalArgumentException
IllegalAccessException
InvocationTargetException
javassist.CannotCompileException
protected javassist.bytecode.annotation.Annotation[] addHttpRequestParameter(javassist.CtMethod ctMethod, javassist.ClassPool cp) throws javassist.NotFoundException, javassist.CannotCompileException
javassist.NotFoundException
javassist.CannotCompileException
protected void addRequestMethodBody(boolean referencesId, javassist.CtMethod ctMethod, String event) throws javassist.CannotCompileException, javassist.NotFoundException
javassist.CannotCompileException
javassist.NotFoundException
protected void addFSMHarnessReference(javassist.CtClass proxyClass, String fsmHarnessId, javassist.ClassPool cp) throws javassist.NotFoundException, javassist.CannotCompileException
javassist.NotFoundException
javassist.CannotCompileException
protected void addRequestMethod(javassist.CtClass proxyClass, Class<?> idType, boolean isDomainEntity, String event, Method method, javassist.ClassPool cp) throws javassist.NotFoundException, IllegalArgumentException, IllegalAccessException, InvocationTargetException, javassist.CannotCompileException
javassist.NotFoundException
IllegalArgumentException
IllegalAccessException
InvocationTargetException
javassist.CannotCompileException
protected javassist.bytecode.annotation.Annotation[] addIdParameter(javassist.CtMethod ctMethod, Class<?> idType, javassist.ClassPool cp) throws javassist.NotFoundException, javassist.CannotCompileException
javassist.NotFoundException
javassist.CannotCompileException
protected javassist.bytecode.annotation.Annotation[] createParameterAnnotations(String parmName, javassist.bytecode.MethodInfo methodInfo, Annotation[] annotations, javassist.bytecode.ConstPool parameterConstPool) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException
protected Pattern getMethodPattern()
protected Class<?> getComponentClass()
protected abstract void addEndpointMapping(javassist.CtMethod ctMethod, String method, String request)
protected abstract Class<?> getPathAnnotationClass()
protected abstract String getSuffix()
Copyright © 2016. All rights reserved.