This article is an excerpt from the ebook titled “Java Interceptor Development with ByteBuddy: Fundamental ”. The excerpt is the chapter two of the ebook.
This chapter explains on how to implement the on method enter advice. This chapter also explains on how to build and execute the instrumentation process. This process will be repeated in every chapters of this book. The source code for this chapter is included in ChapterVisitOnMethodEnterAdvice Eclipse project. This is the project structure: