public class JerseyBinder extends AbstractRestfulBinder
Constructor and Description |
---|
JerseyBinder() |
Modifier and Type | Method and Description |
---|---|
protected void |
addEndpointMapping(javassist.CtMethod ctMethod,
String method,
String request) |
protected javassist.bytecode.annotation.Annotation[] |
addHttpRequestParameter(javassist.CtMethod ctMethod,
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) |
String |
getKey()
Returns the "key" for this EndpointBinder.
|
protected Class<?> |
getPathAnnotationClass() |
protected String |
getSuffix() |
addComponentAnnotation, addFSMHarnessReference, addIdParameter, addRequestMethod, addRequestMethodBody, addRequestMethods, addRequestParameters, copyParameters, createParameterAnnotations, createRequestMethod, getComponentClass, getMethodPattern, parseMethod
public static final String KEY
public String getKey()
EndpointBinder
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
bindEndpoints
in class AbstractRestfulBinder
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
buildProxy
in class AbstractRestfulBinder
javassist.CannotCompileException
javassist.NotFoundException
IllegalArgumentException
IllegalAccessException
InvocationTargetException
protected void addEndpointMapping(javassist.CtMethod ctMethod, String method, String request)
addEndpointMapping
in class AbstractRestfulBinder
protected javassist.bytecode.annotation.Annotation[] addHttpRequestParameter(javassist.CtMethod ctMethod, javassist.ClassPool cp) throws javassist.NotFoundException, javassist.CannotCompileException
addHttpRequestParameter
in class AbstractRestfulBinder
javassist.NotFoundException
javassist.CannotCompileException
protected String getSuffix()
getSuffix
in class AbstractRestfulBinder
protected Class<?> getPathAnnotationClass()
getPathAnnotationClass
in class AbstractRestfulBinder
Copyright © 2016. All rights reserved.