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, waitgetKeypublic Class<?> bindEndpoints(String beanName, Class<?> statefulControllerClass, Class<?> idType, boolean isDomainEntity, Map<String,Method> eventMapping, ReferenceFactory refFactory) throws javassist.CannotCompileException, javassist.NotFoundException, IllegalArgumentException, IllegalAccessException, InvocationTargetException
EndpointBinderbindEndpoints in interface EndpointBinderbeanName - The Spring Bean Name for the Endpoint BinderstatefulControllerClass - The class of the associated StatefulControlleridType - 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.CannotCompileExceptionjavassist.NotFoundExceptionIllegalArgumentExceptionIllegalAccessExceptionInvocationTargetExceptionprotected 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.CannotCompileExceptionjavassist.NotFoundExceptionIllegalArgumentExceptionIllegalAccessExceptionInvocationTargetExceptionprotected 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
IllegalArgumentExceptionjavassist.NotFoundExceptionIllegalAccessExceptionInvocationTargetExceptionjavassist.CannotCompileExceptionprotected javassist.CtMethod createRequestMethod(javassist.CtClass proxyClass,
String requestMethod,
String requestEvent,
Method method,
javassist.ClassPool cp)
throws javassist.NotFoundException
javassist.NotFoundExceptionprotected 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.NotFoundExceptionIllegalArgumentExceptionIllegalAccessExceptionInvocationTargetExceptionjavassist.CannotCompileExceptionprotected void copyParameters(javassist.CtMethod ctMethod,
Method method,
javassist.ClassPool cp)
throws javassist.NotFoundException,
IllegalArgumentException,
IllegalAccessException,
InvocationTargetException,
javassist.CannotCompileException
javassist.NotFoundExceptionIllegalArgumentExceptionIllegalAccessExceptionInvocationTargetExceptionjavassist.CannotCompileExceptionprotected javassist.bytecode.annotation.Annotation[] addHttpRequestParameter(javassist.CtMethod ctMethod,
javassist.ClassPool cp)
throws javassist.NotFoundException,
javassist.CannotCompileException
javassist.NotFoundExceptionjavassist.CannotCompileExceptionprotected void addRequestMethodBody(boolean referencesId,
javassist.CtMethod ctMethod,
String event)
throws javassist.CannotCompileException,
javassist.NotFoundException
javassist.CannotCompileExceptionjavassist.NotFoundExceptionprotected void addFSMHarnessReference(javassist.CtClass proxyClass,
String fsmHarnessId,
javassist.ClassPool cp)
throws javassist.NotFoundException,
javassist.CannotCompileException
javassist.NotFoundExceptionjavassist.CannotCompileExceptionprotected 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.NotFoundExceptionIllegalArgumentExceptionIllegalAccessExceptionInvocationTargetExceptionjavassist.CannotCompileExceptionprotected javassist.bytecode.annotation.Annotation[] addIdParameter(javassist.CtMethod ctMethod,
Class<?> idType,
javassist.ClassPool cp)
throws javassist.NotFoundException,
javassist.CannotCompileException
javassist.NotFoundExceptionjavassist.CannotCompileExceptionprotected 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.