Class ApiVirtualAspect


  • @Component
    public class ApiVirtualAspect
    extends java.lang.Object
    This Aspect is core class to intercept @VirtualService and @ApiVirtual annotation to produce the response for the virtualized methods. Annotate class with @VirtualService and @ApiVirtual and make that service as virtualized service
    Author:
    Elan Thangamani
    • Constructor Detail

      • ApiVirtualAspect

        public ApiVirtualAspect()
    • Method Detail

      • addQueryParamValue

        public java.lang.String addQueryParamValue​(java.lang.Object value)
      • apiVirtualServicePointcut

        public void apiVirtualServicePointcut()
      • aroundAddAdvice

        public java.lang.Object aroundAddAdvice​(org.aspectj.lang.ProceedingJoinPoint thisJoinPoint)
                                         throws java.io.IOException,
                                                javax.xml.bind.JAXBException
        Throws:
        java.io.IOException
        javax.xml.bind.JAXBException
      • isVirtualService

        public java.util.AbstractMap.SimpleEntry<java.lang.Boolean,​java.lang.Class> isVirtualService​(java.lang.Class<?> claszzz)