at.chrl.callbacks.enhancer

Class GlobalCallbackEnhancer

    • Constructor Detail

      • GlobalCallbackEnhancer

        public GlobalCallbackEnhancer()
    • Method Detail

      • enhanceMethod

        protected void enhanceMethod(javassist.CtMethod method)                      throws javassist.CannotCompileException,                             javassist.NotFoundException,                             ClassNotFoundException
        Responsible for method enhancing, writing service calls to method.
        Parameters:
        method - Method that has to be edited
        Throws:
        javassist.CannotCompileException - if something went wrong
        javassist.NotFoundException - if something went wrong
        ClassNotFoundException
      • writeBeforeMethod

        protected String writeBeforeMethod(javassist.CtMethod method,                                   int paramLength,                                   String listenerFieldName)                            throws javassist.NotFoundException
        Code that is added in the begining of the method
        Parameters:
        method - method that should be edited
        paramLength - Lenght of methods parameters
        listenerFieldName - Listener class that is used for method
        Returns:
        code that will be inserted before method
        Throws:
        javassist.NotFoundException - if something went wrong
      • writeAfterMethod

        protected String writeAfterMethod(javassist.CtMethod method,                                  int paramLength,                                  String listenerFieldName)                           throws javassist.NotFoundException
        Writes code that will be inserted after method
        Parameters:
        method - method to edit
        paramLength - lenght of method paramenters
        listenerFieldName - method listener
        Returns:
        actual code that should be inserted
        Throws:
        javassist.NotFoundException - if something went wrong
      • isEnhanceable

        protected boolean isEnhanceable(javassist.CtMethod method)
        Checks if method is enhanceable. It should be marked with GlobalCallback annotation, be not native and not abstract
        Parameters:
        method - method to check
        Returns:
        check result

Copyright © 2014–2015. All rights reserved.



NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14